コード例 #1
0
 private void GetDialogResult2(frmStokBklLookup dialogForm)
 {
     txtLookupName.Text = dialogForm.NamaStokBkl;
     _lastStokBklName   = txtLookupName.Text;
     txtLookupCode.Text = dialogForm.KodeStokBkl;
     _satuan            = dialogForm.Satuan;
     if (this.SelectData != null)
     {
         this.SelectData(this, new EventArgs());
     }
 }
コード例 #2
0
        private void ShowDialogForm2(string searchArg, DataTable dt)
        {
            frmStokBklLookup frmDialog = new frmStokBklLookup(searchArg, dt);

            frmDialog.ShowDialog();
            if (frmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult2(frmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
コード例 #3
0
        /* Call extended dialog form */

        private void ShowDialogForm2()
        {
            frmStokBklLookup frmDialog = new frmStokBklLookup();

            frmDialog.ShowDialog();
            if (frmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult2(frmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }