Пример #1
0
 public void RemoveCoil(CoilMapping coilMapping)
 {
     Coils.Remove(coilMapping);
     if (coilMapping.Destination == CoilDestination.Lamp)
     {
         var lamp = Lamps.FirstOrDefault(l => l.Id == coilMapping.Id && l.IsCoil);
         if (lamp != null)
         {
             Lamps.Remove(lamp);
         }
     }
 }
Пример #2
0
 public void AddCoil(CoilMapping coilMapping)
 {
     Coils.Add(coilMapping);
 }