private void metroButton7_Click(object sender, EventArgs e) { DepartmentModel.id = departmentGrid.Rows[departmentGrid.SelectedRows[0].Index].Cells[0].Value.ToString(); DepartmentModel.name = departmentGrid.Rows[departmentGrid.SelectedRows[0].Index].Cells[1].Value.ToString(); add_department update = new add_department(true); update.ShowDialog(); }
private void metroButton8_Click(object sender, EventArgs e) { add_department add = new add_department(); add.ShowDialog(); }