Example #1
0
 public void Initialize()
 {
     Console.WriteLine("Initializing ...");
     Console.WriteLine("C -> " + _classrooms);
     Console.WriteLine("S -> " + _s);
     string[] cls = _classrooms.Split(',');
     for (int i = 0; i < cls.Length; i++)
     {
         Classroom cl = Core.Server.Integration.ExecuteGetClassroom(Int32.Parse(cls[i]));
         if (cl != null)
         {
             Classrooms.Add(cl);
         }
     }
     string[] sve = _s.Split(',');
     for (int i = 0; i < sve.Length; i++)
     {
         SavedProblemSets.Add(Core.Server.Integration.ExecuteGetProblemSetById(sve[i]));
     }
 }
Example #2
0
 public void addClassroom(Classroom cls)
 {
     cls.setClassroomId();
     Classrooms.Add(cls);
     Core.Server.Integration.ExecuteAddClassroomToTeacher(cls, this);
 }