示例#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>();
     }
 }