public void appendStudents(StuList list) { foreach (Student stu in list.allStudents()) { if (!containsStudent(stu)) { addStudent(stu); } } }
public StuList removeStuList(string id) { StuList aimList = null; foreach (StuList list in stuLists) { if (list.UUID.Equals(id)) { aimList = list; } } if (aimList != null) { stuLists.Remove(aimList); } return(aimList); }
public void addStuList(StuList stuList) { stuLists.Add(stuList); }