예제 #1
0
        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;
            }
        }
예제 #2
0
        internal FileTreeNode(DynamicFileSystemTree tree, FileTreeNode child) : this(tree) {
            ChildDirectoryNodes = new ObservableCollection <FileTreeNode>();
            ChildFileNodes      = new ObservableCollection <FileTreeNode>();

            ChildDirectoryNodes.Add(child);
        }
예제 #3
0
 protected FileTreeNode(DynamicFileSystemTree tree)
 {
     this.Tree        = tree;
     this.NotRenaming = true;
 }