public override void New(object sender, EventArgs e) { EmployeesInsUp popup = new EmployeesInsUp(EmployeesInsUp.EditMode.Insert, null); if (popup.ShowDialog() == DialogResult.OK) { frm.NoticeMessage = Resources.AddDone; dgvEmployee.DataSource = null; LoadGridView(); } }
public override void Modify(object sender, EventArgs e) { if (dgvEmployee.SelectedRows.Count < 1) { frm.NoticeMessage = Resources.ModEmpty; } if (rdoResign.Checked && dgvEmployee.SelectedRows.Count > 0) { frm.NoticeMessage = Properties.Resources.ModResigndateError; } if (rdoWork.Checked && dgvEmployee.SelectedRows.Count > 0) { EmployeesInsUp popup = new EmployeesInsUp(EmployeesInsUp.EditMode.Update, item); if (popup.ShowDialog() == DialogResult.OK) { frm.NoticeMessage = Resources.ModDone; dgvEmployee.DataSource = null; LoadGridView(); } } }