} //-------------------------------- //this procedure shows the search result private void ShowSearchResultDialog() { if (this.ctlManager.SchoolYearIndex != -1) { try { this.Cursor = Cursors.WaitCursor; String queryString = RemoteClient.ProcStatic.TrimStartEndString(ctlManager.GetSearchString); if (!String.IsNullOrEmpty(queryString)) { if (ctlManager.SemesterIndex == -1) { _frmSpecialClassSearch.DataSource = _specialManager.GetSearchedSpecialClassInformation(queryString); } else { _frmSpecialClassSearch.DataSource = _specialManager.GetSearchedSpecialClassInformation(queryString, _specialManager.GetSemesterSystemId(ctlManager.SchoolYearIndex, ctlManager.SemesterIndex)); } } } catch (Exception ex) { RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Retrieving Data"); } finally { this.ctlManager.SetFocusOnSearchTextBox(); this.Cursor = Cursors.Arrow; } } }//--------------------------