/// <inheritdoc/> protected override void Dispose(bool disposing) { if (inputValueDebouncer != null) { inputValueDebouncer.Debounced -= OnInputValueDebounced; inputValueDebouncer = null; } base.Dispose(disposing); }
/// <summary> /// Shared code to dispose of any internal resources. /// </summary> protected override void ReleaseResources() { if (inputValueDebouncer != null) { inputValueDebouncer.Debounce -= OnInputValueDebounce; inputValueDebouncer = null; } base.ReleaseResources(); }
/// <inheritdoc/> protected override void OnInitialized() { if (IsDelayTextOnKeyPress) { inputValueDebouncer = new ValueDebouncer(DelayTextOnKeyPressIntervalValue); inputValueDebouncer.Debounced += OnInputValueDebounced; } base.OnInitialized(); }
/// <inheritdoc/> protected override void OnInitialized() { if (IsDebounce) { inputValueDebouncer = new(DebounceIntervalValue); inputValueDebouncer.Debounce += OnInputValueDebounce; } base.OnInitialized(); }