public EnrollInput() { this.Owner = Application.Current.MainWindow; InitializeComponent(); UserNameInput.Text = "New User"; UserNameInput.Focus(); UserNameInput.SelectAll(); }
private void OnUsernameTaken(Message msg) { ChangeUIThreadSafe(() => { UserNameInput.IsReadOnly = false; UsernameLabel.Content = "НИК ЗАНЯТ. Другой избери"; UserNameInput.SelectAll(); CheckUsernameButton.IsEnabled = true; }); }