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); }
public void AddCourse(Course course) { this.courseList.Add(course); this.coursesListBox.Items.Add(course.Name); }