Example #1
0
        public EnrollInput()
        {
            this.Owner = Application.Current.MainWindow;
            InitializeComponent();

            UserNameInput.Text = "New User";
            UserNameInput.Focus();
            UserNameInput.SelectAll();
        }
Example #2
0
 private void OnUsernameTaken(Message msg)
 {
     ChangeUIThreadSafe(() =>
     {
         UserNameInput.IsReadOnly = false;
         UsernameLabel.Content    = "НИК ЗАНЯТ. Другой избери";
         UserNameInput.SelectAll();
         CheckUsernameButton.IsEnabled = true;
     });
 }