private void CheckActiveColor() { Color newVal; if (_useCustomColor || _sourceColor == null) { newVal = _customColor; } else { newVal = _sourceColor.ActiveColor; } if (newVal != _activeColor) { _activeColor = newVal; ActiveColorChanged?.Invoke(this); UpdateContrastColor(); } }
protected void RaiseActiveColorChanged() { ActiveColorChanged?.Invoke(this); }