public University(Semester cur, Semester open)
        {
            currentSemester = cur;
            semOpenForRegistration = open;

            Instance = this;
        }
        public Section(short sectionID, int num, Course c, Semester s)
        {
            ID = sectionID;
            number = num;
            course = c;
            semester = s;

            //records =  new List<CourseRecord>();
            //students = new List<User>();//change to Student
            //instructors = new List<User>();
        }
 public List<Semester> GetSemesters()
 {
     List<Semester> sems = new List<Semester>();
     DataRowCollection rows = _studentRecords.Semesters.Rows;
     foreach(DataRow r in rows)
     {
         StudentRecordsDataSet.SemestersRow row = (StudentRecordsDataSet.SemestersRow) r;
         Semester sem = new Semester(row.ID, row.Season, row.Year);
         sems.Add(sem);
     }
     return sems;
 }
 public List<Section> GetSectionsByEmployeeUserIDAndSemester(short u_ID, Semester sem)
 {
     List<Section> sectionsByEmployeeAndSemester = new List<Section>();
     List<Section> msl = GetAllSections();
     foreach (Section s in msl)
     {
         if (s.GetSemester().Equals(sem))
             if (s.isInstructorByUserID(u_ID) || s.isTAbyUserID(u_ID))
                 sectionsByEmployeeAndSemester.Add(s);
     }
     return sectionsByEmployeeAndSemester;
 }