private void btnNovo_Click(object sender, EventArgs e) { frmManutencaoFornecedor objFormManutencao = new frmManutencaoFornecedor(); objFormManutencao.ShowDialog(this); ListarFornecedores(new VOFornecedor()); }
private void ClickItemMenu(object sender, EventArgs e) { Form objForm; switch (((ToolStripMenuItem)sender).Name) { case "frmManutencaoCliente": objForm = new frmManutencaoCliente(); objForm.ShowDialog(this); break; case "frmManutencaoFornecedor": objForm = new frmManutencaoFornecedor(); objForm.ShowDialog(this); break; case "frmListaFornecedores": objForm = new frmListaFornecedores(); objForm.ShowDialog(this); break; case "frmListaClientes": objForm = new frmListaClientes(); objForm.ShowDialog(this); break; case "frmManutencaoUsuarios": objForm = new frmManutencaoUsuarios(); objForm.ShowDialog(this); break; case "frmListaUsuarios": objForm = new frmListaUsuarios(); objForm.ShowDialog(this); break; case "Sair": Environment.Exit(0); break; default: clsUtil.ExibirMensagem("Tela não cadastrada.", "Modulo Administrativo", MessageBoxButtons.OK, MessageBoxIcon.Warning); break; } }