private void ShowDialogForm() { frmLookupBankRekening ifrmDialog = new frmLookupBankRekening(); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } }
private void GetDialogResult(frmLookupBankRekening dialogForm) { txtLookup.Text = dialogForm.BankID; MaxLength = dialogForm.BankID.Length; lblLookupNamaBank.Text = dialogForm.NamaBank; lblNoRekening.Text = dialogForm.No_Rekening; lblNamaRekening.Text = dialogForm.Nama_rekening; _rowID = dialogForm.RowID; if (this.SelectData != null) { this.SelectData(this, new EventArgs()); } }
private void ShowDialogForm(string searchArg, DataTable dt) { frmLookupBankRekening ifrmDialog = new frmLookupBankRekening(searchArg, dt); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } else { Clear(); } }