Пример #1
0
        /// <inheritdoc/>
        protected override void Dispose(bool disposing)
        {
            if (inputValueDebouncer != null)
            {
                inputValueDebouncer.Debounced -= OnInputValueDebounced;
                inputValueDebouncer            = null;
            }

            base.Dispose(disposing);
        }
Пример #2
0
        /// <summary>
        /// Shared code to dispose of any internal resources.
        /// </summary>
        protected override void ReleaseResources()
        {
            if (inputValueDebouncer != null)
            {
                inputValueDebouncer.Debounce -= OnInputValueDebounce;
                inputValueDebouncer           = null;
            }

            base.ReleaseResources();
        }
Пример #3
0
        /// <inheritdoc/>
        protected override void OnInitialized()
        {
            if (IsDelayTextOnKeyPress)
            {
                inputValueDebouncer            = new ValueDebouncer(DelayTextOnKeyPressIntervalValue);
                inputValueDebouncer.Debounced += OnInputValueDebounced;
            }

            base.OnInitialized();
        }
Пример #4
0
        /// <inheritdoc/>
        protected override void OnInitialized()
        {
            if (IsDebounce)
            {
                inputValueDebouncer           = new(DebounceIntervalValue);
                inputValueDebouncer.Debounce += OnInputValueDebounce;
            }

            base.OnInitialized();
        }