Exemplo n.º 1
0
        public async Task DoSnippetQuery(StorageFolder folder, string query)
        {
            SnippetFiles = await _snippetRepository.GetAllSnippetsRecursivelyAsync(folder, query);

            if (SnippetFiles.Count == 0)
            {
                QueryResults = "No snippets found matching the search text";
            }
            else if (SnippetFiles.Count == 1)
            {
                QueryResults = "1 snippet found matching the search text";
            }
            else
            {
                QueryResults = SnippetFiles.Count.ToString() + " snippets found matching the search text";
            }
        }