v1.1.0: 全面重构UI为Better-Seewo横版主窗口 (Fluent风格+圆角+动画), 新增非触摸大板支持与专业版激活, 更改菜单位置至ApplicationMenu/ExtendedTitleBar
This commit is contained in:
26
Better-EN5/UI/ActivateDialog.xaml.cs
Normal file
26
Better-EN5/UI/ActivateDialog.xaml.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Windows;
|
||||
|
||||
namespace BetterEN5.UI
|
||||
{
|
||||
public partial class ActivateDialog : Window
|
||||
{
|
||||
public string LicenseKey { get; private set; } = "";
|
||||
|
||||
public ActivateDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void OnKeyTextChanged(object sender, System.Windows.Controls.TextChangedEventArgs e)
|
||||
{
|
||||
ActivateButton.IsEnabled = KeyTextBox.Text.Trim().Length >= 4;
|
||||
}
|
||||
|
||||
private void Activate_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
LicenseKey = KeyTextBox.Text.Trim();
|
||||
DialogResult = true;
|
||||
Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user