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

            Instance = this;
        }
 public University SetUniversity()
 {
     List<Semester> sems = GetSemesters();
     Semester curr = null, open = null;
     DataRowCollection rows = _studentRecords.University.Rows;
     foreach (DataRow r in rows)
     {
         StudentRecordsDataSet.UniversityRow row = (StudentRecordsDataSet.UniversityRow) r;
         foreach (Semester s in sems)
         {
             if (row.CurrSemID == s.getID())         curr = s;
             if (row.OpenForRegSemID == s.getID())   open = s;
         }
     }
     University u = new University(curr, open);
     u.SetSemesters(sems);
     u.SetDepartments(GetDepartments());
     return u;
 }