Пример #1
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmBankLookup ifrmDialog = new frmBankLookup(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
Пример #2
0
        private void ShowDialogForm()
        {
            frmBankLookup ifrmDialog = new frmBankLookup();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
Пример #3
0
        private void GetDialogResult(frmBankLookup dialogForm)
        {
            txtLookup.Text = dialogForm.NamaBank;
            lblLookup.Text = dialogForm.BankID;
            _rowID         = dialogForm.RowID;

            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }