public FolderIncludeTreeViewItem_Root(IReadOnlyCollection <IncludeGraph.GraphItem> graphItems, IncludeGraph.GraphItem includingFile) { this.graphItems = graphItems; this.includingFile = includingFile; this.Name = "Root"; this.AbsoluteFilename = "Root"; }
public void Reset(IReadOnlyCollection <IncludeGraph.GraphItem> graphItems, IncludeGraph.GraphItem includingFile) { this.graphItems = graphItems; this.includingFile = includingFile; this.cachedItems = null; NotifyAllPropertiesChanged(); }
public FolderIncludeTreeViewItem_Leaf(IncludeGraph.GraphItem item) { try { Name = Path.GetFileName(item.AbsoluteFilename); } catch { Name = item?.FormattedName; } AbsoluteFilename = item?.AbsoluteFilename; if (string.IsNullOrWhiteSpace(AbsoluteFilename) || !Path.IsPathRooted(AbsoluteFilename)) { ParentFolder = FolderIncludeTreeViewItem_Folder.UnresolvedFolderName; } else { ParentFolder = Path.GetDirectoryName(AbsoluteFilename); } }