コード例 #1
0
ファイル: Main.cs プロジェクト: ricardosantos9521/PowerToys
        public List <Result> Query(Query query)
        {
            if (query == null)
            {
                throw new ArgumentNullException(nameof(query));
            }

            VirtualDesktopHelperInstance.UpdateDesktopList();
            OpenWindows.Instance.UpdateOpenWindowsList();
            SearchController.Instance.UpdateSearchText(query.Search);
            List <SearchResult> searchControllerResults = SearchController.Instance.SearchMatches;

            return(ResultHelper.GetResultList(searchControllerResults, !string.IsNullOrEmpty(query.ActionKeyword), IconPath, InfoIconPath));
        }