private void editToolStripMenuItem_Click(object sender, EventArgs e) { if (department.departmentID == 0) { MessageBox.Show("Department Not Selected."); return; } AddDepartmentForm addDepartmentForm = new AddDepartmentForm(department.departmentID); addDepartmentForm.ShowDialog(this); dataGridViewDepartment.Rows.Clear(); department.GetAllDepartmentList(dataGridViewDepartment); }
private void addDepartmentToolStripMenuItem_Click(object sender, EventArgs e) { AddDepartmentForm addDepartmentForm = new AddDepartmentForm(); addDepartmentForm.ShowDialog(this); }