예제 #1
0
        private async void UpdateSearchSuggestions()
        {
            var patterns = (await Patterns.FindPatternsByName(_searchBox.Text)).OrderBy(s => s.Name).ToArray();

            if (patterns.Count() > 0)
            {
                ShowPatternPicker(patterns);
            }
            else
            {
                HidePatternPicker();
            }
        }