//University should always exist before CourseRecords are accessed
 public List<CourseRecord> GetCourseRecordsByStudent(Student st)
 {
     List<CourseRecord> crs = new List<CourseRecord>();
     DataRow[] rows = _studentRecords.CRsAndSsToSs.Select("StudentID = '" + st.GetID() + "'");
     foreach (DataRow row in rows)
     {
         StudentRecordsDataSet.CRsAndSsToSsRow r = (StudentRecordsDataSet.CRsAndSsToSsRow) row;
         Section s = University.Instance.GetSectionByID(r.SectionID);
         CourseRecord rec = new CourseRecord(r.Grade, s, st);
         crs.Add(rec);
     }
     return crs;
 }
 public void AddStudent(Student s)
 {
     students.Add(s);
 }
 public void RemoveStudent(Student s)
 {
     students.Remove(s);
 }
 public CourseRecord(String g, Section sect, Student stud)
 {
     grade = GetGradeEnum(g);
     section = sect;
     student = stud;
 }
        private void LoadMembersAndComponents()
        {
            this.Text += " - " + University.Instance.SemesterOpenForReg().ToStringSimple();

            depts = University.Instance.GetDepartments();
            foreach (Department d in depts)
                this.Department_listBox.Items.Add(d.GetName());

            short u_id = Session.Instance.GetUser().GetID();
            student = XMLDataSetConnector.Instance.GetStudentByUserID(u_id);

            LoadSchedule();
        }
 //Session User should always exist before Student is created
 public Student GetStudentByUserID(short u_id)
 {
     DataRow[] rows = _studentRecords.Students.Select("UserID = '" + u_id + "'");
     StudentRecordsDataSet.StudentsRow r = (StudentRecordsDataSet.StudentsRow)rows[0];
     User u = GetUserByID(u_id);
     Student st = new Student(u, r.ID);
     List<CourseRecord> crs = GetCourseRecordsByStudent(st);
     st.GetTranscript().SetCourseRecords(crs);
     return st;
 }