Exemple #1
0
 public void AddStudentToClass(Student stud)
 {
     if(!Students.Contains(stud))
     {
         Students.Add(stud);
     }
     if(Students.Count == MinAttendants)
     {
         OnGoalReached();
     }
 }
Exemple #2
0
 public void RemoveStudent(Student stud)
 {
     if(Students.Contains(stud))
     {
         Students.Remove(stud);
     }
 }