示例#1
0
        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);
            }
        }
示例#2
0
 public NavigateTreeItem(string parentKey, string key, NavigateItem item = null)
 {
     this.parentKey = parentKey;
     this.key       = key;
     this.item      = item;
 }