}//----------------------------

        //############################################END CONTROLCLASSROOMSUBJECTMANAGER ctlManager EVENTS##########################################
        #endregion

        #region Programer-Define Void Procedures
        //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))
                {
                    _frmStudentSearch.DataSource = _studentManager.GetSearchedStudentInformation(_userInfo, queryString,
                                                                                                 _dateStart, _dateEnd, _studentManager.GetCourseYearLevelStringFormat(this.ctlManager.YearLevelCheckedListBox, false),
                                                                                                 _studentManager.GetCourseYearLevelStringFormat(this.ctlManager.CourseCheckedListBox, true));
                }

                _frmStudentSearch.SetProgressBarValue(0);

                if (this.ctlManager.SchoolYearComboBox.SelectedIndex <= -1)
                {
                    _frmStudentSearch.DisableEnableButtonStudentRecordStatementOfAccount(false, _userInfo);
                }
                else
                {
                    _frmStudentSearch.DisableEnableButtonStudentRecordStatementOfAccount(true, _userInfo);
                }

                if ((this.ctlManager.SchoolYearComboBox.SelectedIndex >= 0 ||
                     this.ctlManager.SemesterComboBox.SelectedIndex >= 0) &&
                    (this.ctlManager.CourseCheckedListBox.CheckedIndices.Count != 0 &&
                     this.ctlManager.YearLevelCheckedListBox.CheckedIndices.Count != 0))
                {
                    _frmStudentSearch.DisableEnablePrintStudentMasterStudentEnrolmentList(true, _userInfo);
                }
                else
                {
                    _frmStudentSearch.DisableEnablePrintStudentMasterStudentEnrolmentList(false, _userInfo);
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Retrieving Data");
            }
            finally
            {
                this.ctlManager.SetFocusOnSearchTextBox();

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