示例#1
0
        private void ShowDialogForm()
        {
            frmLookupBankRekening ifrmDialog = new frmLookupBankRekening();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
示例#2
0
        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());
            }
        }
示例#3
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmLookupBankRekening ifrmDialog = new frmLookupBankRekening(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                Clear();
            }
        }