Exemple #1
0
 private void AbrirFormSalario(object sender, EventArgs args)
 {
     using (FormSalario formSalario = new FormSalario())
     {
         formSalario.ShowDialog();
     }
 }
Exemple #2
0
        private void AbrirFormSalarioShortCut(object sender, KeyEventArgs e)
        {
            using (FormSalario formSalario = new FormSalario())
            {
                if (e.Control && e.KeyCode == Keys.S)
                {
                    formSalario.ShowDialog();
                }
            }
            if (e.Control && e.KeyCode == Keys.Q)
            {
                this.formVentanaPrincipal.btnCerrarFormActivo.PerformClick();
            }

            if (e.KeyCode == Keys.Escape)
            {
                this.formVentanaPrincipal.btnCerrar.PerformClick();
            }
        }