public static IEnumerable <NavigateItem> Scan(IEnumerable <string> roots) { var files = roots.SelectMany(ScanForFiles).ToList(); var addReferenceHelper = new AddReferenceHelper(); int index = 0; foreach (var file in files) { BusyIndicator.UpdateProgress(index + 1, files.Count); NavigateItem item = new NavigateItem(); item.Path = file; item.Name = Path.GetFileName(file); item.ProjectType = addReferenceHelper.GetProjectType(file); index++; yield return(item); } }
public NavigateTreeItem(string parentKey, string key, NavigateItem item = null) { this.parentKey = parentKey; this.key = key; this.item = item; }