Exemplo n.º 1
0
 private void DisplayInfoAboutLesson(Lesson LessonToDisplay)
 {
     cb_year.SelectedIndex    = LessonToDisplay.YearIndex;
     cb_homework.Text         = Convert.ToString(LessonToDisplay.homeworkAmount);
     cb_room.SelectedIndex    = currentTT.GetIndexOfRoom(LessonToDisplay.RoomCode);
     cb_subject.SelectedIndex = currentTT.GetIndexOfSubject(LessonToDisplay.SubjectAbbreviation);
     cb_teacher.SelectedIndex = currentTT.GetIndexOfStaff(LessonToDisplay.TeacherAbbreviation);
     cb_form.SelectedIndex    = LessonToDisplay.FormIndex;
     btn_invisible.Checked    = LessonToDisplay.invisible;
     btn_locked.Checked       = LessonToDisplay.locked;
 }