private void ShowDialogForm(string searchArg, DataTable dt) { frmSecurityRightsLookup ifrmDialog = new frmSecurityRightsLookup(searchArg, dt); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } }
private void GetDialogResult(frmSecurityRightsLookup dialogForm) { txtLookupName.Text = dialogForm.rightName; txtLookupCode.Text = dialogForm.rightID; if (this.SelectData != null) { this.SelectData(this, new EventArgs()); } }
private void ShowDialogForm() { frmSecurityRightsLookup ifrmDialog = new frmSecurityRightsLookup(); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } }