Beispiel #1
0
 public void appendStudents(StuList list)
 {
     foreach (Student stu in list.allStudents())
     {
         if (!containsStudent(stu))
         {
             addStudent(stu);
         }
     }
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
 public void addStuList(StuList stuList)
 {
     stuLists.Add(stuList);
 }