Exemple #1
0
 private void SetUserBoxFocus()
 {
     UserBox.Dispatcher.Invoke(new Action(() =>
     {
         UserBox.Focus();
         UserBox.Effect   = (DropShadowEffect)MainGrid.Resources["glowEffect"];
         SystemBox.Effect = null;
     }));
 }
Exemple #2
0
        public LoginV()
        {
            InitializeComponent();

            Messenger.Default.Register <NotificationMessage>(this, ShowHome);

            if (string.IsNullOrEmpty(UserBox.Text))
            {
                UserBox.Focus();
            }
        }
Exemple #3
0
        private void EmptyStuff()
        {
            UserBox.Focus();
            UserBox.Text   = String.Empty;
            ApiBox.Text    = String.Empty;
            SecretBox.Text = String.Empty;
            PassBox1.Text  = String.Empty;
            PassBox2.Text  = String.Empty;

            UserBox.Enabled   = true;
            ApiBox.Enabled    = false;
            SecretBox.Enabled = false;
            PassBox1.Enabled  = false;
            PassBox2.Enabled  = false;
            AddButton.Enabled = false;
        }
Exemple #4
0
 public Login()
 {
     InitializeComponent();
     UserBox.Focus();
 }