public override void RemoveBrightnessChangeListener(IBrightnessChangeListener listener) { if (!BrightnessChangeListeners.Contains(listener)) { return; } listener.BrightnessChanged -= this.OnBrightnessChanged; BrightnessChangeListeners.Remove(listener); }
public override void AddBrightnessChangeListener(IBrightnessChangeListener listener) { if (BrightnessChangeListeners.Contains(listener)) { return; } listener.BrightnessChanged += this.OnBrightnessChanged; BrightnessChangeListeners.Add(listener); }