CmisSync.Lib.Cmis.UiUtils.CmisUtils.NodeTree.NodeTree C# (CSharp) Метод

NodeTree() публичный Метод

public NodeTree ( IList trees, IFolder folder, int depth ) : System
trees IList
folder IFolder
depth int
Результат System
            public NodeTree(IList<ITree<IFileableCmisObject>> trees, IFolder folder, int depth) {
                this.Path = folder.Path;
                this.Name = folder.Name;
                this.Finished = !(depth == 0);

                if (trees != null) {
                    foreach (ITree<IFileableCmisObject> tree in trees) {
                        Folder f = tree.Item as Folder;
                        if (f != null) {
                            this.Children.Add(new NodeTree(tree.Children, f, depth - 1));
                        }
                    }
                }
            }
        }
CmisUtils.NodeTree