private void OnSearchFound(SearchFileInfo fileInfo)
		{
			if (SearchFound != null)
			{
				SearchFound(this, new SearchFoundEventArgs { FileInfo = fileInfo });
			}
		}
Exemple #2
0
        private SearchFileInfo CreateSearchFileInfo(string file, string searchTextHits)
        {
            FileInfo fileInfo = new FileInfo(file);
            SearchFileInfo searchFileInfo = new SearchFileInfo();
            searchFileInfo.Path = file;
            searchFileInfo.LastWriteTime = fileInfo.LastWriteTime;
            searchFileInfo.Length = fileInfo.Length;
            searchFileInfo.SearchTexts = searchTextHits;

            return searchFileInfo;
        }
 void ISearchContext.SearchFound(SearchFileInfo fileInfo)
 {
     OnSearchFound(fileInfo);
 }