Beispiel #1
0
        private static void UpdateSearchResults(IList <SearchResult> searchResults, XPathWorkbench workbench)
        {
            foreach (var searchResult in searchResults.Take(XPathWorkbench.MaxSearchResultCount))
            {
                workbench.SearchResults.Add(searchResult);
            }

            workbench.UpdateSearchResultText(searchResults);
        }
        public XPathWorkbenchWindow()
            : base(null)
        {
            Caption = PackageResources.XPathWorkbenchWindowTitle;
            var workbench = new XPathWorkbench(Registry.Current.Get <XmlRepository>(), Registry.Current.Get <SearchResultFactory>());

            workbench.SearchResultSelected += GoToSearchResult;
            Content = workbench;
        }