protected override void Initialize()
		{
			Nodes.Clear();
			IDocument document = results[0].CreateDocument();
			if (document.HighlightingStrategy == null) {
				document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategyForFile(fileName);
			}
			foreach (SearchResultMatch result in results) {
				TreeNode newResult = new SearchResultNode(document, result);
				Nodes.Add(newResult);
			}
		}
Exemplo n.º 2
0
        protected override void Initialize()
        {
            Nodes.Clear();
            IDocument document = results[0].CreateDocument();

            if (document.HighlightingStrategy == null)
            {
                document.HighlightingStrategy = HighlightingStrategyFactory.CreateHighlightingStrategyForFile(fileName);
            }
            foreach (SearchResultMatch result in results)
            {
                TreeNode newResult = new SearchResultNode(document, result);
                Nodes.Add(newResult);
            }
        }