Esempio n. 1
0
        }//--------------------------------

        //this procedure shows the search result
        private void ShowSearchResultDialog()
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                String queryString = RemoteClient.ProcStatic.TrimStartEndString(ctlManager.GetSearchString);

                if (!String.IsNullOrEmpty(queryString) && this.ctlManager.SchoolYearIndex != -1)
                {
                    this.SelectByDateStartEndScheduleInformationDetails(queryString);

                    _frmSubjectScheduleSearch.DataSource = _scheduleManager.GetSearchedScheduleInformationDetails();
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Retrieving Data");
            }
            finally
            {
                this.ctlManager.SetFocusOnSearchTextBox();

                this.Cursor = Cursors.Arrow;
            }
        }//--------------------------