Ejemplo n.º 1
0
        public void RemoveCourse(Course course)
        {
            for (int i = 0; i < course.LessonCount(); ++i)
            {
                //BUGI: Joskus tuhoaa vain osan tunneista
                this.timetableLayoutPanel.Controls.Remove(course.GetLesson(i).CellControl);
            }

            this.courseList.Remove(course);
            this.coursesListBox.Items.Remove(course.Name);
        }
Ejemplo n.º 2
0
 public void AddCourse(Course course)
 {
     this.courseList.Add(course);
     this.coursesListBox.Items.Add(course.Name);
 }