private void RangeBase_OnValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { if (Math.Abs(_lastValue - Value) > 5) { _lastValue = Value; NewServovalue?.Invoke(this, Value); } }
private void ButtonBase_OnClick(object sender, RoutedEventArgs e) { _lastValue = Value; NewServovalue?.Invoke(this, Value); }