private void ShowDialogForm(string searchArg, DataTable dt) { frmCustomerLookup ifrmDialog = new frmCustomerLookup(searchArg, dt); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } }
private void ShowDialogForm() { frmCustomerLookup ifrmDialog = new frmCustomerLookup(); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } }
private void GetDialogResult(frmCustomerLookup dialogForm) { txtLookupName.Text = dialogForm.NamaCust; txtLookupCode.Text = dialogForm.KodeCust; _rowID = dialogForm.RowId; _kodeCust = dialogForm.KodeCust; _namaCust = dialogForm.NamaCust; _alamat = dialogForm.AlamatCust; _kota = dialogForm.Kota; _daerah = dialogForm.Daerah; if (this.SelectData != null) { this.SelectData(this, new EventArgs()); } }