Ejemplo n.º 1
0
        private void CHM_IDENTIFICATION_UTILISATEUR_KeyDown(object sender, KeyEventArgs e)
        {
            try
            {
                if (LOGIN_USER.Focused && e.KeyCode == Keys.Enter)
                {
                    PASSWORD_USER.Focus();
                    return;
                }

                if (PASSWORD_USER.Focused && e.KeyCode == Keys.Enter)
                {
                    try
                    {
                        buttonVALIDER.PerformClick();
                        return;
                    }
                    catch (Exception er)
                    {
                        MessageBox.Show(er.Message, "Connection error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    }
                }
            }
            catch (Exception er)
            {
                MessageBox.Show(er.Message, "Connexion serveur", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
Ejemplo n.º 2
0
 private void CHM_ACTIVER_UTILISATEUR_Shown(object sender, EventArgs e)
 {
     LOGIN_USER.Text = CLIENT_APP_PARAM.Fenetre_principale.login_user;
     PASSWORD_USER.Focus();
 }