void OnStopWordChanged()
        {
            var handler = StopWordChanged;

            if (handler != null)
            {
                handler(StopWordText);
            }

            AddNew.OnCanExecuteChanged();
        }
        void UpdateSearchResults()
        {
            App.Current.Dispatcher.Invoke(() => _searchBox.Update());

            IsNotEnoughtForName = _searchBox.State == SearchBoxState.NoResults && !IsValidName() && SearchText.Trim().Length > 0 ?
                                  Visibility.Visible : Visibility.Collapsed;

            AddNewVisibility = _searchBox.State == SearchBoxState.NoResults && IsValidName() ?
                               Visibility.Visible : Visibility.Collapsed;

            TooManyResultsVisibility = _searchBox.State == SearchBoxState.TooMuchResults ?
                                       Visibility.Visible : Visibility.Collapsed;

            AddNew.OnCanExecuteChanged();
        }