private void GetDialogResult2(frmStokBklLookup dialogForm) { txtLookupName.Text = dialogForm.NamaStokBkl; _lastStokBklName = txtLookupName.Text; txtLookupCode.Text = dialogForm.KodeStokBkl; _satuan = dialogForm.Satuan; if (this.SelectData != null) { this.SelectData(this, new EventArgs()); } }
private void ShowDialogForm2(string searchArg, DataTable dt) { frmStokBklLookup frmDialog = new frmStokBklLookup(searchArg, dt); frmDialog.ShowDialog(); if (frmDialog.DialogResult == DialogResult.OK) { GetDialogResult2(frmDialog); } else { txtLookupName.Focus(); } }
/* Call extended dialog form */ private void ShowDialogForm2() { frmStokBklLookup frmDialog = new frmStokBklLookup(); frmDialog.ShowDialog(); if (frmDialog.DialogResult == DialogResult.OK) { GetDialogResult2(frmDialog); } else { txtLookupName.Focus(); } }