public void enrollUser(student currentStudent) { enrolledStudents.Add(currentStudent); seats -= 1; }
// Change the database //---------------------------------------- public void addCrsToStd(string crsID, string nextSemester, ref courseDatabase crsDB, student currentStudent) { foreach (course crs in crsDB.getCourseList()) { if (crsID.Trim() == crs.crsID.Trim()) { course selectedCourse = crs; selectedCourse.enrollUser(currentStudent); course courseAdding = selectedCourse; currentStudent.addClassToNext(courseAdding); return; } } }
public void addAdvisee(student std) { adviseesLst.Add(std); }