Esempio n. 1
0
 private void GetDialogResult2(frmBarangLookup dialogForm)
 {
     txtLookupName.Text = dialogForm.NamaBarang;
     _lastBarangName    = txtLookupName.Text;
     txtLookupCode.Text = dialogForm.KodeBarang;
     _satuan            = dialogForm.Satuan;
     if (this.SelectData != null)
     {
         this.SelectData(this, new EventArgs());
     }
 }
Esempio n. 2
0
        private void ShowDialogForm2(string searchArg, DataTable dt)
        {
            frmBarangLookup frmDialog = new frmBarangLookup(searchArg, dt);

            frmDialog.ShowDialog();
            if (frmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult2(frmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
Esempio n. 3
0
        /* Call extended dialog form */

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

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