示例#1
0
        public override void RemoveBrightnessChangeListener(IBrightnessChangeListener listener)
        {
            if (!BrightnessChangeListeners.Contains(listener))
            {
                return;
            }

            listener.BrightnessChanged -= this.OnBrightnessChanged;
            BrightnessChangeListeners.Remove(listener);
        }
示例#2
0
        public override void AddBrightnessChangeListener(IBrightnessChangeListener listener)
        {
            if (BrightnessChangeListeners.Contains(listener))
            {
                return;
            }

            listener.BrightnessChanged += this.OnBrightnessChanged;
            BrightnessChangeListeners.Add(listener);
        }