private void munitDataGridView_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { try { NewMunitAddForm newMunitAddForm = new NewMunitAddForm(munitList[e.RowIndex], this); newMunitAddForm.Show(); } catch (Exception exc) { MessageBox.Show(exc.Message); } }
private void addNewMunitButton_Click(object sender, EventArgs e) { try { ProductManagement.NewMunitAddForm newMunitAddForm = new ProductManagement.NewMunitAddForm(); newMunitAddForm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void addMunitButton_Click(object sender, EventArgs e) { NewMunitAddForm newMunitAddForm = new NewMunitAddForm(this); newMunitAddForm.Show(); }