예제 #1
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmTokoLookUp ifrmDialog = new frmTokoLookUp(searchArg, dt);

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
예제 #2
0
        private void ShowDialogForm()
        {
            frmTokoLookUp ifrmDialog = new frmTokoLookUp();

            ifrmDialog.ShowDialog();
            if (ifrmDialog.DialogResult == DialogResult.OK)
            {
                GetDialogResult(ifrmDialog);
            }
            else
            {
                txtLookupName.Focus();
            }
        }
예제 #3
0
 private void GetDialogResult(frmTokoLookUp dialogForm)
 {
     _rowID             = dialogForm.RowId;
     txtLookupName.Text = dialogForm.namaToko;
     _lastNamaToko      = txtLookupName.Text;
     txtLookupCode.Text = dialogForm.kodeToko;
     _tokoID            = dialogForm.TokoId;
     _alamat            = dialogForm.alamat;
     _daerah            = dialogForm.daerah;
     _kota    = dialogForm.kota;
     _hrKirim = dialogForm.hariKirim;
     _hrSales = dialogForm.hariSales;
     _wilID   = dialogForm.wilID;
     //_kecamatan = dialogForm.Kecamatan;
     _propinsi = dialogForm.propinsi;
     if (this.SelectData != null)
     {
         this.SelectData(this, new EventArgs());
     }
 }