AdvancedLauncher.UI.Controls.AutoCompleteBox.AutoCompleteTextBox.OnEditorTextChanged C# (CSharp) Метод

OnEditorTextChanged() приватный Метод

private OnEditorTextChanged ( object sender, System.Windows.Controls.TextChangedEventArgs e ) : void
sender object
e System.Windows.Controls.TextChangedEventArgs
Результат void
        private void OnEditorTextChanged(object sender, TextChangedEventArgs e)
        {
            if (_isUpdatingText)
                return;
            if (FetchTimer == null) {
                FetchTimer = new DispatcherTimer();
                FetchTimer.Interval = TimeSpan.FromMilliseconds(Delay);
                FetchTimer.Tick += OnFetchTimerTick;
            }
            FetchTimer.IsEnabled = false;
            FetchTimer.Stop();
            SetSelectedItem(null);
            if (Editor.Text.Length > 0) {
                IsLoading = true;
                IsDropDownOpen = false;
                ItemsSelector.ItemsSource = null;
                FetchTimer.IsEnabled = true;
                FetchTimer.Start();
            } else {
                IsDropDownOpen = false;
            }
        }