Esempio n. 1
0
 private void btnCaixa_Click(object sender, EventArgs e)
 {
     if (Convert.ToInt32(label7.Text) != 3 && Convert.ToInt32(label7.Text) != 1)
     {
         MessageBox.Show("Desculpe você não pode acessar essa tela");
     }
     else
     {
         Caixa caixa = new Caixa();
         caixa.ShowDialog();
     }
 }
Esempio n. 2
0
        private void btnImprimir_Click(object sender, EventArgs e)
        {
            Caixa caixa = new Caixa();

            caixa.imprimir();


            CaptureScreen();
            PrinterSettings ps = new PrinterSettings();

            ps.Copies = 2;
            IEnumerable <PaperSize> paperSizes = ps.PaperSizes.Cast <PaperSize>();

            printDocument1.DefaultPageSettings.PaperSize = new PaperSize("473 x 615 mm", 370, 525);
            PrintPreviewDialog ppw = new PrintPreviewDialog();

            ppw.Document = printDocument1;
            ppw.ShowDialog();

            Close();
        }
Esempio n. 3
0
        private void caixaToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Caixa caixa = new Caixa();

            caixa.ShowDialog();
        }
Esempio n. 4
0
        private void Menu_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode.ToString() == "F1")
            {
                CadProdutos cad = new CadProdutos();
                cad.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F2")
            {
                AlterarProd alt = new AlterarProd();
                alt.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F3")
            {
                Estoque est = new Estoque();
                est.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F4")
            {
                AlterarProd altEs = new AlterarProd();
                altEs.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F5")
            {
                Caixa caixa = new Caixa();
                caixa.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F6")
            {
                EstoqueRapido cad = new EstoqueRapido();
                cad.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F7")
            {
                CadFuncionario func = new CadFuncionario();
                func.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F8")
            {
                CadastrarFornecedores forn = new CadastrarFornecedores();
                forn.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F9")
            {
                AltFornecedor alt = new AltFornecedor();
                alt.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F10")
            {
                PedidoFornecedor ped = new PedidoFornecedor();
                ped.ShowDialog();
            }

            if (e.KeyCode.ToString() == "F11")
            {
                Relatorio rel = new Relatorio();
                rel.ShowDialog();
            }
        }