Esempio n. 1
0
 private void GetDialogResult(frmSalesLookup dialogForm)
 {
     _rowID             = dialogForm.RowId;
     txtLookupName.Text = dialogForm.namaSales;
     _lastNamaSales     = txtLookupName.Text;
     txtLookupCode.Text = dialogForm.salesId;
     if (this.SelectData != null)
     {
         this.SelectData(this, new EventArgs());
     }
 }
Esempio n. 2
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmSalesLookup ifrmDialog = new frmSalesLookup(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
Esempio n. 3
0
        private void ShowDialogForm()
        {
            frmSalesLookup ifrmDialog = new frmSalesLookup();

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