Esempio n. 1
0
        private void ShowDialogForm()
        {
            frmLookupBankRekening ifrmDialog = new frmLookupBankRekening();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
Esempio n. 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());
            }
        }
Esempio n. 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();
            }
        }