private void departmentRemoveClick(object sender, EventArgs e) { Department d = (Department)dataGridView1.CurrentRow.Tag; if (d == null) { return; } dao.delDepartment(d.DepartmentId); initData(); }
private void departmentRemoveClick(object sender, EventArgs e) { Department d = (Department)dataGridView1.CurrentRow.Tag; if (d == null) { return; } dao.delDepartment(d.DepartmentId); initData(); }