예제 #1
0
        private void OnValueChanged(bool force)
        {
            double oldValue = _value;

            _value = Math.Round(ElementSlider.Value, _decimals);
            if ((oldValue != _value) || force)
            {
                ElementValue.Text = _value.ToString(CultureInfo.CurrentCulture);
                ValueChanged.InvokeEmpty(this);
            }
        }