Exemple #1
0
 private void textBox2_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == (char)13)
     {
         Btn_Login.PerformClick();
     }
 }
 private void Txt_Password_KeyDown_1(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         Btn_Login.RaiseEvent(new RoutedEventArgs(Button.ClickEvent));
     }
 }
Exemple #3
0
 private void FrmLogin_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.Enter)
     {
         Btn_Login.PerformClick();
     }
 }
Exemple #4
0
 private void txt_Password_KeyPress(object sender, KeyPressEventArgs e)
 {
     if (e.KeyChar == Convert.ToChar(Keys.Enter))
     {
         Btn_Login.PerformClick();
     }
 }
Exemple #5
0
 private void LoginForm_KeyDown(object sender, KeyEventArgs e)
 {
     switch (e.KeyCode)
     {
     case Keys.Enter:
         Btn_Login.PerformClick();
         break;
     }
 }
 void Init()
 {
     BackgroundColor           = Constants.BackgroundColor;
     Lbl_Login.TextColor       = Constants.GreenTextColor;
     ActivitySpinner.IsVisible = false;
     Login_Icon.HeightRequest  = Constants.LoginIconHeight;
     Btn_Reg.BackgroundColor   = Color.Green;
     Entry_Username.Completed += (s, e) => Entry_Password.Focus();
     Entry_Password.Completed += (s, e) => Btn_Login.Focus();
 }
Exemple #7
0
 private void Tbx_Pass_KeyPress(object sender, KeyPressEventArgs e)
 {
     // 'e' almacena la tecla presionada
     if (e.KeyChar == (char)13) //si la tecla pesionada es igual a ENTER (13)
     {
         e.Handled = true;      //.Handled significa que nosotros nos haremos cargo del codigo
                                //al ser true, evita que apareca la tecla presionada
         Btn_Login.PerformClick();
     }
 }
Exemple #8
0
        void Init()
        {
            Lbl_Login.TextColor       = Constants.GreenTextColor;
            ActivitySpinner.IsVisible = false;
            Login_Icon.HeightRequest  = Constants.LoginIconHeight;

            Entry_Email.Completed    += (s, e) => Entry_Password.Focus();
            Entry_Password.Completed += (s, e) => Btn_Login.Focus();
            Btn_Login.BackgroundColor = Color.Orange;
            Btn_Reset.BackgroundColor = Color.Green;
            Btn_Reg.BackgroundColor   = Color.Green;
        }
Exemple #9
0
        protected override void Refresh(object userData = null)
        {
            UpdateResourceForm.Close();

            Btn_Login.AddClick(Btn_Login_Click);
        }