public override void New(object sender, EventArgs e) { DepartmentInsUp popup = new DepartmentInsUp(DepartmentInsUp.EditMode.Insert, null); if (popup.ShowDialog() == DialogResult.OK) { frm.NoticeMessage = Resources.AddDone; dgvDepartment.DataSource = null; LoadGridView(); } }
public override void Modify(object sender, EventArgs e) { if (dgvDepartment.SelectedRows.Count < 1) { frm.NoticeMessage = Resources.ModEmpty; } else { DepartmentInsUp popup = new DepartmentInsUp(DepartmentInsUp.EditMode.Update, item); if (popup.ShowDialog() == DialogResult.OK) { frm.NoticeMessage = Resources.ModDone; dgvDepartment.DataSource = null; LoadGridView(); } } }