public void Trigger(List <Signal> triggering) { if (Disposed) { return; } if (ChainKind? !Preferences.ChainSignalIndicators : !Preferences.DeviceSignalIndicators) { return; } SetIndicator(triggering.Any(i => i.Color.Lit)? 1 : 0.5); lock (locker) Timer?.Restart(); }
public void Trigger(bool lit) { if (ChainKind? !Preferences.ChainSignalIndicators : !Preferences.DeviceSignalIndicators) { return; } lock (locker) { if (Disposed) { return; } SetIndicator(lit? 1 : 0.5); Timer.Restart(); } }