예제 #1
0
        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();
        }
예제 #2
0
        public void Trigger(bool lit)
        {
            if (ChainKind? !Preferences.ChainSignalIndicators : !Preferences.DeviceSignalIndicators)
            {
                return;
            }

            lock (locker) {
                if (Disposed)
                {
                    return;
                }

                SetIndicator(lit? 1 : 0.5);

                Timer.Restart();
            }
        }