Пример #1
0
 public TeacherController()
 {
     las      = new LoadAndSave <Teacher>(Path);
     teachers = las.Load();
     if (teachers == null)
     {
         teachers = new List <Teacher>();
     }
 }
Пример #2
0
 public ClassController(Teacher teacher)
 {
     current = teacher;
     las     = new LoadAndSave <Class>(Path);
     classes = las.Load();
     if (classes == null)
     {
         classes = new List <Class>();
     }
 }