Esempio n. 1
0
 private void lblPistaBoliche_Click(object sender, EventArgs e)
 {
     using (TFMovBoliche fMov = new TFMovBoliche())
     {
         fMov.ShowDialog();
     }
 }
Esempio n. 2
0
 private void FPainelRestaurante_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode.Equals(Keys.F10))
     {
         if (lblVendaCombustivel.Visible)
         {
             lblVendaCombustivel_Click(this, new EventArgs());
         }
     }
     else if (e.KeyCode.Equals(Keys.P) && e.Control)
     {
         Altera_relatorio = true;
     }
     else if (e.KeyCode.Equals(Keys.F8))
     {
         if (label1.Visible)
         {
             label1_Click(this, new EventArgs());
         }
     }
     else if (e.KeyCode.Equals(Keys.F11))
     {
         if (lblVendaCombustivel.Visible)
         {
             using (TFVendaDelivery f = new TFVendaDelivery())
                 f.ShowDialog();
         }
     }
     else if (e.KeyCode.Equals(Keys.F12))
     {
         if (label2.Visible)
         {
             using (Restaurante.Cadastro.FClifor f = new Restaurante.Cadastro.FClifor())
                 f.ShowDialog();
         }
     }
     else if (e.KeyCode.Equals(Keys.F3))
     {
         this.AbrirCaixa();
     }
     else if (e.KeyCode.Equals(Keys.F4))
     {
         this.FecharCaixa();
     }
     else if (e.KeyCode.Equals(Keys.F9))
     {
         if (lblPistaBoliche.Visible)
         {
             using (TFMovBoliche fMov = new TFMovBoliche())
                 fMov.ShowDialog();
         }
     }
     else if (e.KeyCode.Equals(Keys.F7))
     {
         if (lblFecharCartao.Visible)
         {
             using (TFFechaCartao fFecharCartao = new TFFechaCartao())
                 fFecharCartao.ShowDialog();
         }
     }
 }