Beispiel #1
0
 public virtual void RemoveCabine(params Cabine[] cabines)
 {
     foreach (var cabine in cabines)
     {
         Cabines.Remove(cabine);
     }
     OnPropertyChanged(() => CabinesText);
 }
Beispiel #2
0
 public virtual void AddCabine(params Cabine[] cabines)
 {
     foreach (var cabine in cabines)
     {
         if (Cabines.Any(x => x.Id == cabine.Id))
         {
             continue;
         }
         Cabines.Add(cabine);
     }
     OnPropertyChanged(() => CabinesText);
 }