Beispiel #1
0
 public static void RemoveCover(string BeatName)
 {
     MiscData.CoveredBeat foundBeat = CoveredBeats.Find(delegate(MiscData.CoveredBeat myBeat) { return(myBeat.BeatNumber == BeatName); });
     if (foundBeat != null)
     {
         CoveredBeats.Remove(foundBeat);
     }
 }
Beispiel #2
0
 public static void RemoveCoverByTruck(string TruckNumber)
 {
     MiscData.CoveredBeat foundBeat = CoveredBeats.Find(delegate(MiscData.CoveredBeat myBeat) { return(myBeat.TruckNumber == TruckNumber); });
     if (foundBeat != null)
     {
         CoveredBeats.Remove(foundBeat);
     }
 }
Beispiel #3
0
 public static void AddCover(string TruckNumber, string BeatName)
 {
     MiscData.CoveredBeat foundBeat = CoveredBeats.Find(delegate(MiscData.CoveredBeat thisBeat) { return(thisBeat.BeatNumber == BeatName); });
     if (foundBeat == null)
     {
         MiscData.CoveredBeat myBeat = new MiscData.CoveredBeat();
         myBeat.TruckNumber = TruckNumber;
         myBeat.BeatNumber  = BeatName;
         CoveredBeats.Add(myBeat);
     }
 }