Example #1
0
        private void LBX_GererUniteMesure_KeyUp(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Delete:
                Fermer();
                break;

            case Keys.Add:
                BTN_AjouterUnite.PerformClick();
                break;

            case Keys.Subtract:
                BTN_Effacer_Valeur.PerformClick();
                break;

            case Keys.ControlKey:
                BTN_Modify.PerformClick();
                break;

            case Keys.F1:
                BTN_Help.PerformClick();
                break;

            case Keys.Escape:
                Fermer();
                break;
            }
        }
Example #2
0
        private void TextBox_Depart_KeyUp(object sender, KeyEventArgs e)
        {
            switch (e.KeyCode)
            {
            case Keys.Delete:
                BTN_Effacer_Valeur.PerformClick();
                break;

            case Keys.Escape:
                this.Close();
                break;
            }
        }