private void Menu_Load(object sender, EventArgs e) { checarNivel(); preencherData(); this.KeyPreview = true; //this.KeyDown += new KeyEventHandler(Menu_KeyDown); System.Drawing.Drawing2D.GraphicsPath gp = new System.Drawing.Drawing2D.GraphicsPath(); gp.AddEllipse(0, 0, pictureBox1.Width - 3, pictureBox1.Height - 3); Region rg = new Region(gp); pictureBox1.Region = rg; mostrarNome.Text = Login.nomeMenu; if (checkBox1.Checked) { CadProdutos cad = new CadProdutos(); cad.FormBorderStyle = FormBorderStyle.None; cad.BackColor = Color.Black; } else { CadProdutos cad = new CadProdutos(); cad.FormBorderStyle = FormBorderStyle.Sizable; } }
private void btnCadastrar_Click(object sender, EventArgs e) { CadProdutos cadProd = new CadProdutos(); cadProd.ShowDialog(); }
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(); } }
private void adicionarProdutosToolStripMenuItem_Click(object sender, EventArgs e) { CadProdutos cad = new CadProdutos(); cad.ShowDialog(); }