private void cadastrarInsumosToolStripMenuItem_Click(object sender, EventArgs e) { try { Form frm = new CadastroInsumos("0", null, null, null); frm.ShowDialog(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void toolStripButton1_Click(object sender, EventArgs e) { Form frm = new CadastroInsumos(InsumosdataGridView1.Rows[Convert.ToInt32(bindingNavigatorPositionItem.TextBox.Text) - 1].Cells[0].Value.ToString(), null, null, null); frm.ShowDialog(); }
private void bindingNavigatorAddNewItem_Click(object sender, EventArgs e) { Form frm = new CadastroInsumos("0", null, null, null); frm.ShowDialog(); }