Ejemplo n.º 1
0
 private void GetDialogResult(frmUnitKerjaLookup dialogForm)
 {
     _rowID             = dialogForm.RowId;
     txtLookupName.Text = dialogForm.nama;
     _lastNamaSales     = txtLookupName.Text;
     txtLookupCode.Text = dialogForm.kode;
     Keterangan         = dialogForm.keterangan;
     if (this.SelectData != null)
     {
         this.SelectData(this, new EventArgs());
     }
 }
Ejemplo n.º 2
0
        private void ShowDialogForm(string searchArg, DataTable dt)
        {
            frmUnitKerjaLookup ifrmDialog = new frmUnitKerjaLookup(searchArg, dt);

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

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