}//------------------------ //####################################################END LINKLABEL lnkMarriageDate EVENTS############################################### //####################################################LINKLABEL lnkVerify EVENTS############################################### //event is raised when the control is clicked protected virtual void lnkVerifyLinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { try { this.Cursor = Cursors.WaitCursor; DataTable resultTable = _baseServiceManager.GetSearchPersonInformation(_userInfo, String.Empty, _personInfo.LastName, _personInfo.FirstName, String.Empty, true); if (resultTable.Rows.Count > 0) { using (VerifyPersonExistenceList frmVerify = new VerifyPersonExistenceList(_userInfo, _baseServiceManager, RemoteClient.ProcStatic.GetCompleteNameMiddleInitial(_personInfo.LastName, _personInfo.FirstName, _personInfo.MiddleName), resultTable, _isForStudentVerification, _isForPersonVerification, ref this.pbxPerson)) { frmVerify.ShowDialog(this); if (frmVerify.HasSelected) { _personInfo = _baseServiceManager.GetPersonDetails(_userInfo, _baseServiceManager.GetPersonSysId(frmVerify.RowIndex), Application.StartupPath); this.AssingControlsValue(); this.SetPersonInformationControls(true); } else if (frmVerify.IsVerified && _isForPersonVerification) { this.SetPersonInformationControls(true); } _hasSelectedPersonFromVerification = true; } } else { MessageBox.Show("The system has successfully verified that " + RemoteClient.ProcStatic.GetCompleteNameMiddleInitial( _personInfo.LastName, _personInfo.FirstName, _personInfo.MiddleName) + " does NOT currently exist on the database." + "\n\nClick OK to proceed.", "Success", MessageBoxButtons.OK, MessageBoxIcon.Information); if (_isForPersonVerification) { this.SetPersonInformationControls(true); } } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message + "\n Error loading person verify module.", "Error Loading"); } finally { this.Cursor = Cursors.Arrow; } }//---------------------------
}//-------------------- //##################################END DATAGRIDVIEW dgvList EVENTS########################################################## //##################################TEXTBOX txtSearch EVENTS########################################################## //event is raised when the key is up protected override void txtSearchKeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { try { this.Cursor = Cursors.WaitCursor; this.SetDataGridViewSource(_baseServiceManager.GetSearchPersonInformation(_userInfo, ((TextBox)sender).Text, String.Empty, String.Empty, _personSysIdExcludeList, true)); } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Retrieving Person Infomation List"); } finally { this.Cursor = Cursors.Arrow; } } base.txtSearchKeyUp(sender, e); }//-----------------------------------