Exemplo n.º 1
0
 private void GetDialogResult2(frmStockLookUpExtended dialogForm)
 {
     _rowID             = dialogForm.RowId;
     txtLookupName.Text = dialogForm.NamaStock;
     _lastStockName     = txtLookupName.Text;
     txtLookupCode.Text = dialogForm.BarangId;
     _satuan            = dialogForm.Satuan;
     if (this.SelectData != null)
     {
         this.SelectData(this, new EventArgs());
     }
 }
Exemplo n.º 2
0
        private void ShowDialogForm2(string searchArg, DataTable dt)
        {
            frmStockLookUpExtended ifrmDialog = new frmStockLookUpExtended(searchArg, dt);

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

        private void ShowDialogForm2()
        {
            frmStockLookUpExtended ifrmDialog = new frmStockLookUpExtended();

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