Esempio n. 1
0
        /// <inheritdoc />
        public override void Disable()
        {
            base.Disable();

            if (observer != null)
            {
                observer.ValueChanged -= OnObserverValueChanged;
                observer = null;
            }
        }
Esempio n. 2
0
        /// <inheritdoc />
        public override void Enable()
        {
            base.Enable();

            var target = Target;

            if (target != null)
            {
                observer = new RangeSliderValueMinObserver {
                    Target = target
                };
                observer.ValueChanged += OnObserverValueChanged;
            }
        }