-
-
Notifications
You must be signed in to change notification settings - Fork 464
/
SessionCorruptionErrorDialog.cs
23 lines (21 loc) · 1.1 KB
/
SessionCorruptionErrorDialog.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// ---------------------------------------------------------------------------------------------
// Copyright (c) 2019-2024, Jiaqi (0x7c13) Liu. All rights reserved.
// See LICENSE file in the project root for license information.
// ---------------------------------------------------------------------------------------------
namespace Notepads.Controls.Dialog
{
using System;
using Windows.UI;
public sealed class SessionCorruptionErrorDialog : NotepadsDialog
{
public SessionCorruptionErrorDialog(Action recoveryAction)
{
Title = ResourceLoader.GetString("SessionCorruptionErrorDialog_Title");
Content = ResourceLoader.GetString("SessionCorruptionErrorDialog_Content");
PrimaryButtonText = ResourceLoader.GetString("SessionCorruptionErrorDialog_PrimaryButtonText");
CloseButtonText = ResourceLoader.GetString("SessionCorruptionErrorDialog_CloseButtonText");
PrimaryButtonStyle = GetButtonStyle(Color.FromArgb(255, 255, 69, 0));
PrimaryButtonClick += (dialog, args) => { recoveryAction(); };
}
}
}