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