Example #1
0
 public void registerToClass(Classroom class1)
 {
     class1.addStudent(this);
     this.studentClasses.Add(class1);
     this.grades.Add(0);
     this.subjects.Add(class1.getSubject());
 }
Example #2
0
        public void changeClassRoom(Classroom class1)
        {
            for (int x = 0; x < studentClasses.Count; x++)
            {
                if (studentClasses[x].getSubject() == class1.getSubject())
                {
                    studentClasses[x].removeStudent(this);
                    studentClasses.RemoveAt(x);
                }
            }

            class1.addStudent(this);
            studentClasses.Add(class1);
        }