예제 #1
0
        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);
        }
예제 #2
0
 /// <summary>
 ///     Raises the <see cref="DefaultsChanged" /> event.
 /// </summary>
 /// <seealso cref="EventArgs" />
 protected virtual void OnDefaultsChanged()
 {
     DefaultsChanged?.Invoke(this, EventArgs.Empty);
 }