Exemplo n.º 1
0
        protected virtual void OnValueChanged(RangePair range, double value)
        {
            var handler = ValueChanged;

            if (handler != null)
            {
                handler(range, value);
            }
        }
Exemplo n.º 2
0
        internal void SetValue(double start, double end)
        {
            _isChanging = true;

            var middle = (end - start) / 2;

            Range = new RangePair(-middle, middle);

            SetByValue(end, start, (start + end) / 2);

            _isChanging = false;
        }
Exemplo n.º 3
0
        protected void OnNotchChanged(RangePair range, double value)
        {
            if (_lastNotchRange != null && _lastNotchRange.Start == range.Start && _lastNotchRange.End == range.End && _lastNotchShift == value)
            {
                return;
            }

            _lastNotchRange = range;
            _lastNotchShift = value;

            if (NotchChanged != null)
            {
                NotchChanged(new RangePair {
                    End = TransformFromChartSamples(range.End), Start = TransformFromChartSamples(range.Start)
                }, TransformFromChartSamples(value));
            }
        }