private void suggest()
        {
            var searchState = _textInputState = TextInputStateCurrent;

            _language = Language;

            var suggest = _spellchecker.Suggest(_language, searchState);

            if (isSuggestUpToDate())
            {
                Suggested?.Invoke(suggest, searchState);
            }
        }
        private void suggest()
        {
            var searchState = _textInputState = TextInputStateCurrent;

            var suggest = _searcher.Suggest(searchState, Ui);

            if (isSuggestUpToDate())
            {
                var handled = Suggested?.Invoke(suggest, searchState);

                if (handled == false)
                {
                    _textInputState = null;
                }
            }
        }
Exemple #3
0
        private bool trySuggest()
        {
            var searchState = _textInputState = TextInputStateCurrent;

            var suggest = Suggest(searchState);

            if (!IsSuggestUpToDate())
            {
                return(false);
            }

            var handled = Suggested?.Invoke(suggest, searchState);

            if (handled == false)
            {
                _textInputState = null;
            }

            return(handled == true);
        }