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()); } }
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(); } }
private void ShowDialogForm() { frmSalesLookup ifrmDialog = new frmSalesLookup(); ifrmDialog.ShowDialog(); if (ifrmDialog.DialogResult == DialogResult.OK) { GetDialogResult(ifrmDialog); } else { txtLookupName.Focus(); } }