public CourseMeetingCollection FindByRoomId(int roomId) { CourseMeetingCollection cm3 = new CourseMeetingCollection(); foreach (var r in cmList) { if (r.RoomId == roomId) { cm3.CmList.Add(r); } } return(cm3); }
public CourseMeetingCollection FindByCourseId(int courseId) { CourseMeetingCollection cm = new CourseMeetingCollection(); foreach (var c in cmList) { if (c.CourseId == courseId) { cm.CmList.Add(c); } } return(cm); }
public CourseMeetingCollection FindByProfessorId(int professorId) { CourseMeetingCollection cm2 = new CourseMeetingCollection(); foreach (var p in cmList) { if (p.Professor == professorId) { cm2.CmList.Add(p); } } return(cm2); }
public CMC_CallEventArgs(CourseMeetingCollection cmc) { courseMeetings = cmc; }