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

        //############################################END COMBOBOX cboYearSemester EVENTS##############################################

        //##############################################BUTTON btnSearchSubject EVENTS####################################################
        //event is raised when the button is clicked
        private void btnSearchSubjectClick(object sender, EventArgs e)
        {
            try
            {
                this.Cursor = Cursors.WaitCursor;

                using (SubjectSearchOnTextboxList frmSearch = new SubjectSearchOnTextboxList(_userInfo, _specialManager))
                {
                    frmSearch.AdoptGridSize = true;
                    frmSearch.ShowDialog(this);

                    if (frmSearch.HasSelected)
                    {
                        _subjectInfo = _specialManager.GetDetailsSubjectInformation(frmSearch.PrimaryId);

                        _specialInfo.SubjectSysId          = _subjectInfo.SubjectSysId;
                        _specialInfo.IsSemestral           = _subjectInfo.CourseGroupInfo.IsSemestral;
                        _specialInfo.SubjectDepartmentName = _subjectInfo.DepartmentInfo.DepartmentName;

                        lblSysIdSubject.Text           = _subjectInfo.SubjectSysId;
                        lblSubjectCodeDescription.Text = _subjectInfo.SubjectCode + " - " + _subjectInfo.DescriptiveTitle;
                        lblSubjectDepartment.Text      = _subjectInfo.DepartmentInfo.DepartmentName;
                        lblUnitsLabHours.Text          = _specialManager.GetSubjectUnitsHours(_subjectInfo.LectureUnits, _subjectInfo.LabUnits, _subjectInfo.NoHours);

                        _specialManager.InitializeSchoolYearSemesterCombo(cboYearSemester, _subjectInfo.CourseGroupInfo.IsSemestral);

                        if (_subjectInfo.CourseGroupInfo.IsSemestral)
                        {
                            _dateStart = _specialManager.GetSemesterDateStart(_specialManager.GetYearSemesterId(_subjectInfo.CourseGroupInfo.IsSemestral,
                                                                                                                this.cboYearSemester.SelectedIndex)).ToShortDateString() + " 12:00:00 AM";
                            _dateEnd = _specialManager.GetSemesterDateEnd(_specialManager.GetYearSemesterId(_subjectInfo.CourseGroupInfo.IsSemestral,
                                                                                                            this.cboYearSemester.SelectedIndex)).ToShortDateString() + " 11:59:59 PM";
                        }
                        else
                        {
                            _dateStart = _specialManager.GetSchoolYearDateStart(_specialManager.GetYearSemesterId(_subjectInfo.CourseGroupInfo.IsSemestral,
                                                                                                                  this.cboYearSemester.SelectedIndex)).ToShortDateString() + " 12:00:00 AM";
                            _dateEnd = _specialManager.GetSchoolYearDateEnd(_specialManager.GetYearSemesterId(_subjectInfo.CourseGroupInfo.IsSemestral,
                                                                                                              this.cboYearSemester.SelectedIndex)).ToShortDateString() + " 11:59:59 PM";
                        }

                        this.cboYearSemester.Enabled = this.btnSearchEmployee.Enabled = this.lnkEnroll.Enabled = true;

                        this.lnkWithdraw.Enabled = _canWithdraw;
                    }

                    _specialManager.SetSelectedDataTableToNull();
                }
            }
            catch (Exception ex)
            {
                RemoteClient.ProcStatic.ShowErrorDialog(ex.Message, "Error Loading Subject Search Module");
            }
            finally
            {
                this.Cursor = Cursors.Arrow;
            }
        } //-------------------------------------------