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

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
        }
示例#2
0
        private void GetDialogResult(frmPerkiraanLookUp dialogForm)
        {
            _noPerkiraan         = dialogForm.NomorPerkiraan;
            txtLookUpSearch.Text = dialogForm.NomorPerkiraan;

            lblFound.Text = dialogForm.Keterangan;
            if (this.SelectData != null)
            {
                this.SelectData(this, new EventArgs());
            }
        }
示例#3
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmPerkiraanLookUp ifrmDialog = new frmPerkiraanLookUp(searchArg, dt);

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