private void pbRetiro_Click(object sender, EventArgs e) { frmRetiro retiro = new frmRetiro(); retiro.ShowDialog(); this.Hide(); }
private void dataGridView1_KeyDown(object sender, KeyEventArgs e) { frmConfiguracion conf = new frmConfiguracion(); frmRetiro reg = new frmRetiro(); frmBloqueado bloquear = new frmBloqueado(); if (e.KeyData == (Keys.Control | Keys.M)) Util.Animate(pMenu, Util.Effect.Slide, 350, 0); if (e.KeyData == (Keys.Control | Keys.B)) Util.Animate(pBusqueda, Util.Effect.Slide, 350, 0); if (e.KeyData == (Keys.Control | Keys.Alt | Keys.C)) conf.Show(); if (e.KeyData == (Keys.Control | Keys.Alt | Keys.R)) reg.Show(); if (e.KeyData == (Keys.Control | Keys.Alt | Keys.B)) { xSQL.conn.Open(); SqlCommand cmd = new SqlCommand("update turnos set estado_actual = 'Bloqueado' where caja = " + Generales.cajaActual + " and cajero = " + Generales.cajeroActual + "", xSQL.conn); cmd.ExecuteNonQuery(); xSQL.conn.Close(); frmBloqueado bloqueado = new frmBloqueado(); bloqueado.Show(); this.Hide(); } if (e.KeyData == (Keys.Control | Keys.Q)) Application.Exit(); }
private void textBox3_KeyDown(object sender, KeyEventArgs e) { frmConfiguracion conf = new frmConfiguracion(); frmRetiro reg = new frmRetiro(); frmBloqueado bloquear = new frmBloqueado(); if (e.KeyData == (Keys.Control | Keys.M)) { Util.Animate(pMenu, Util.Effect.Slide, 350, 0); } if (e.KeyData == (Keys.Control | Keys.B)) { Util.Animate(pBusqueda, Util.Effect.Slide, 350, 0); } if (e.KeyData == (Keys.Control | Keys.Alt | Keys.C)) { conf.Show(); } if (e.KeyData == (Keys.Control | Keys.Alt | Keys.R)) { reg.Show(); } if (e.KeyData == (Keys.Control | Keys.Alt | Keys.B)) { xSQL.conn.Open(); SqlCommand cmd = new SqlCommand("update turnos set estado_actual = 'Bloqueado' where caja = " + Generales.cajaActual + " and cajero = " + Generales.cajeroActual + "", xSQL.conn); cmd.ExecuteNonQuery(); xSQL.conn.Close(); frmBloqueado bloqueado = new frmBloqueado(); bloqueado.Show(); this.Hide(); } if (e.KeyData == (Keys.Control | Keys.Q)) { Application.Exit(); } }