}//-------------------------------- //################################################END COMBOBOX choYear EVENTS#################################################### //################################################COMBOBOX choSemester EVENTS#################################################### //event is raised when cboSemester selected index changed private void cboSemesterSelectedIndexChanged(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; if (this.AskConfirmationForTeacherLoading("semester", false, true)) { _dateStart = _teacherLoadingManager.GetSemesterDateStart(_teacherLoadingManager.GetSemesterSystemId(this.cboYear.SelectedIndex, this.cboSemester.SelectedIndex)).ToShortDateString() + " 12:00:00 AM"; _dateEnd = _teacherLoadingManager.GetSemesterDateEnd(_teacherLoadingManager.GetSemesterSystemId(this.cboYear.SelectedIndex, this.cboSemester.SelectedIndex)).ToShortDateString() + " 11:59:59 PM"; _teacherLoadingManager.SelectByDateStartEndForTeacherLoadingTeacherLoad(_userInfo, _dateStart, _dateEnd); this.InitializeEmployeeInformationTreeView(); this.ResetControls(); this.SetRecordStatus(); _oldIndexSemester = this.cboSemester.SelectedIndex; //to reset ask confirmation flag _hasEnterAskConfirmation = false; } this.Cursor = Cursors.Arrow; }//-----------------------------