private void ShowDialogForm2(string searchArg, DataTable dt) { frmBarangLookup frmDialog = new frmBarangLookup(searchArg, dt); frmDialog.ShowDialog(); if (frmDialog.DialogResult == DialogResult.OK) { GetDialogResult2(frmDialog); } else { txtLookupName.Focus(); } }
/* Call extended dialog form */ private void ShowDialogForm2() { frmBarangLookup frmDialog = new frmBarangLookup(); frmDialog.ShowDialog(); if (frmDialog.DialogResult == DialogResult.OK) { GetDialogResult2(frmDialog); } else { txtLookupName.Focus(); } }