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<Course> GetCourses(Department d)
 {
     List<Course> courses = new List<Course>();
     DataRowCollection rows = _studentRecords.Courses.Rows;
     foreach (DataRow r in rows)
     {
         StudentRecordsDataSet.CoursesRow row = (StudentRecordsDataSet.CoursesRow) r;
         if (row.DeptName.Equals(d.GetName()))
         {
             Course c = new Course(row.ID, row.Name, row.Number, row.Credits, d);
             c.SetSections(GetSections(c));
             courses.Add(c);
         }
     }
     return courses;
 }
 public void dropCourse(Course c)
 {
 }
 public void addCourse(Course c)
 {
 }
        public List<Section> GetSections(Course c)
        {
            List<Section> sections = new List<Section>();
            DataRowCollection rows = _studentRecords.Sections.Rows;
            foreach (DataRow r in rows)
            {
                StudentRecordsDataSet.SectionsRow row = (StudentRecordsDataSet.SectionsRow)r;
                if (row.CourseID == c.GetID())
                {
                    Semester semTemp = University.Instance.GetSemesterByID(row.SemesterID);
                    Section s = new Section(row.ID, row.Number, c, semTemp);

                    List<User> instrs = new List<User>();
                    short uID = GetUserIDbyEmployeeID(row.Instructor1_EmployeeID);
                    User u = GetUserByID(uID);
                    instrs.Add(u);
                    s.SetInstructors(instrs);

                    if (row.TA_EmployeeID != -1)
                    {
                        short uID2 = GetUserIDbyEmployeeID(row.TA_EmployeeID);
                        User u2 = GetUserByID(uID2);
                        s.setTA(u2);
                    }

                    s.SetGeoSpatialData(row.Building, row.RoomNumber, row.DaysOfWeek, row.TimeOfDay);
                    sections.Add(s);
                }
            }
            return sections;
        }