public RegistrationForm() { InitializeComponent(); DataContext = this; if (UnlockKey.IsRegistered()) { LabelIsRegistered.Text = "This copy is registered."; LabelIsRegistered.Foreground = new SolidColorBrush(Colors.LightGreen); } else { LabelIsRegistered.Text = "This copy is not registered."; } Loaded += (s, e) => { TextRegKey.Focus(); }; }
public RegistrationForm() { InitializeComponent(); DataContext = this; if (UnlockKey.IsRegistered()) { LabelIsRegistered.Text = "This copy is already registered. Only enter key to clear or reset."; LabelIsRegistered.FontWeight = FontWeights.DemiBold; LabelIsRegistered.Foreground = new SolidColorBrush(Colors.LightGreen); } else { LabelIsRegistered.Text = "This copy is not registered."; LabelIsRegistered.FontWeight = FontWeights.Normal; } Loaded += (s, e) => { TextRegKey.Focus(); }; }