示例#1
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frm_TipeTransaksi ifrmDialog = new frm_TipeTransaksi(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
示例#2
0
        private void ShowDialogForm()
        {
            frm_TipeTransaksi ifrmDialog = new frm_TipeTransaksi();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
示例#3
0
        private void GetDialogResult(frm_TipeTransaksi dialogForm)
        {
            _idTr = dialogForm.Kode;
            txtLookupName.Text = dialogForm.Keterangan;
            _lastKeterangan    = txtLookupName.Text;
            txtLookupCode.Text = dialogForm.Kode;
            _keterangan        = dialogForm.Keterangan;
            _jw = dialogForm.JW;
            _js = dialogForm.JS;

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