private void AbrirFormSalario(object sender, EventArgs args) { using (FormSalario formSalario = new FormSalario()) { formSalario.ShowDialog(); } }
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(); } }