void SearchNonNetFile(IDsDocument nonNetFile) { if (nonNetFile == null) { return; } var res = options.Filter.GetResult(nonNetFile); if (res.FilterType == FilterType.Hide) { return; } if (res.IsMatch && IsMatch(nonNetFile.GetShortName(), nonNetFile)) { options.OnMatch(new SearchResult { Context = options.Context, Object = nonNetFile, NameObject = nonNetFile, ObjectImageReference = options.DotNetImageService.GetImageReference(nonNetFile.PEImage), LocationObject = null, LocationImageReference = new ImageReference(), Document = nonNetFile, }); } }
static string GetFilename(IDsDocument document) { string filename = null; try { filename = Path.GetFileName(document.Filename); } catch (ArgumentException) { } if (string.IsNullOrEmpty(filename)) filename = document.GetShortName(); return filename; }
static string GetFilename(IDsDocument document) { string filename = null; try { filename = Path.GetFileName(document.Filename); } catch (ArgumentException) { } if (string.IsNullOrEmpty(filename)) { filename = document.GetShortName(); } return(filename); }
void SearchNonNetFile(IDsDocument nonNetFile) { if (nonNetFile == null) return; var res = options.Filter.GetResult(nonNetFile); if (res.FilterType == FilterType.Hide) return; if (res.IsMatch && IsMatch(nonNetFile.GetShortName(), nonNetFile)) { options.OnMatch(new SearchResult { Context = options.Context, Object = nonNetFile, NameObject = nonNetFile, ObjectImageReference = options.DotNetImageService.GetImageReference(nonNetFile.PEImage), LocationObject = null, LocationImageReference = new ImageReference(), Document = nonNetFile, }); } }