Example #1
0
 public void SetLektion(Lektion l, string name)
 {
     for (int i = 0; i < Variables.Fächer.Count; i++)
     {
         if (Variables.Fächer[i].lektion == l)
         {
             if (l == Lektion.Anderes)
             {
                 if (Variables.Fächer[i].customfach == name)
                 {
                     fach = i;
                     return;
                 }
             }
             else
             {
                 fach = i;
                 return;
             }
         }
     }
     Variables.Fächer.Insert(Variables.Fächer.Count-1,new Fach() { lektion = l, customfach = name });
     fach = Variables.Fächer.Count - 2;
 }
Example #2
0
 public Fach(FachSaveObject f)
 {
     this.lehrkraft = f.lehrkraft;
     this.customfach = f.customfach;
     this.lektion = f.lektion;
     this.Schwerpunktfach = f.Schwerpunktfach;
     this.color = f.color;
     this.noten = f.noten;
     this.isActive = f.isActive;
     this.index = f.index;
 }