public virtual void doUpdate(DataTable dtSelectData) { FormPopup detail = new FormPopup(); if (detail.ShowDialog() == System.Windows.Forms.DialogResult.OK) { query(); } }
private void btnAdd_Click(object sender, EventArgs e) { try { FormPopup detail = new FormPopup(); if (detail.ShowDialog() == System.Windows.Forms.DialogResult.OK) { query(); } } catch (Exception ex) { MessageBox.Show(ex.ToString()); } }