예제 #1
0
파일: Student.cs 프로젝트: egnsh93/CST8253
 public bool Exists(Course course)
 {
     return _courses.Any(c => c.Code == course.Code);
 }
예제 #2
0
파일: Student.cs 프로젝트: egnsh93/CST8253
 public bool HasValidHours(Course course)
 {
     return course.WeeklyHours + GetTotalWeeklyHours() <= MaxWeeklyHours;
 }
예제 #3
0
파일: Student.cs 프로젝트: egnsh93/CST8253
 public void AddCourse(Course course)
 {
     _courses.Add(course);
 }