private static void UpdateSmoothing(NSObject value) { var newSmoothing = value is NSNumber number ? number.Int32Value : -1; if (newSmoothing == smoothing) { return; } smoothing = newSmoothing; DefaultsChanged?.Invoke(null, EventArgs.Empty); }
/// <summary> /// Raises the <see cref="DefaultsChanged" /> event. /// </summary> /// <seealso cref="EventArgs" /> protected virtual void OnDefaultsChanged() { DefaultsChanged?.Invoke(this, EventArgs.Empty); }