27 lines
651 B
C#
27 lines
651 B
C#
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();
|
|
}
|
|
}
|
|
}
|