コード例 #1
0
        private void ShowDialogForm()
        {
            frmJenisTransaksiLookUp ifrmDialog = new frmJenisTransaksiLookUp();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
コード例 #2
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmJenisTransaksiLookUp ifrmDialog = new frmJenisTransaksiLookUp(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
コード例 #3
0
        private void GetDialogResult(frmJenisTransaksiLookUp dialogForm)
        {
            _idTr = dialogForm.IdTr;
            txtLookupName.Text = dialogForm.Keterangan;
            _lastKeterangan    = txtLookupName.Text;
            txtLookupCode.Text = dialogForm.IdTr;
            _keterangan        = dialogForm.Keterangan;
            _kelompok          = dialogForm.Kelompok;
            _jw = dialogForm.JW;
            _js = dialogForm.JS;

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