private void Add(object sender, EventArgs e) { if (((MainForm)this.MdiParent).ActiveMdiChild == this) { StoragePopupForm frm = new StoragePopupForm(emp.Employee_name, false, null); if (frm.ShowDialog() == DialogResult.OK) { ReviewDGV(); } } }
private void OpenPopup(bool IsUpdate, StorageVO vo = null) { if (((MainForm)this.MdiParent).ActiveMdiChild == this) { StoragePopupForm frm = new StoragePopupForm(emp.Employee_name, IsUpdate, vo); if (frm.ShowDialog() == DialogResult.OK) { ReviewDGV(); } } }