internal FileTreeNode(DynamicFileSystemTree tree, FileTreeNode parent, IFileSystemElement value) : this(tree) { this.Value = value; this.IsRoot = (parent == null); this.Parent = parent; this.OpenedAtLeastOnce = IsRoot; this.ChildrenInitialized = !IsDirectory; this.IsUpdating = IsExpanded; this.PropertyChanged += SetIsUpdatingToIsExpanding; if (IsRoot || (parent != null && parent.OpenedAtLeastOnce && parent.ChildDirectoryNodes.Count < 256)) { LoadChildren(); } else { parent.PropertyChanged += OnPropertyChanged; } }
internal FileTreeNode(DynamicFileSystemTree tree, FileTreeNode child) : this(tree) { ChildDirectoryNodes = new ObservableCollection <FileTreeNode>(); ChildFileNodes = new ObservableCollection <FileTreeNode>(); ChildDirectoryNodes.Add(child); }
protected FileTreeNode(DynamicFileSystemTree tree) { this.Tree = tree; this.NotRenaming = true; }