private void GetDialogResult(frmDOLookUp dialogForm) { _rowID = dialogForm.rowID; txtLookupName.Text = dialogForm.noDO; if (this.SelectData != null) { this.SelectData(this, new EventArgs()); } }
private void ShowDialogForm(string searchArg, DataTable dt) { frmDOLookUp ifrmDialog = new frmDOLookUp(searchArg, dt); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } }
private void ShowDialogForm() { frmDOLookUp ifrmDialog = new frmDOLookUp(); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } }