Ejemplo n.º 1
0
 /// <summary>
 /// Gets the subnodes of the node.
 /// </summary>
 /// <param name="vfs">The Orchard VFS instance which the node belongs to.</param>
 /// <param name="module">The object which represents the Orchard module.</param>
 /// <returns>A sequence of VFS nodes.</returns>
 private static IEnumerable<VfsNode> GetSubNodes(IPowerShellVfs vfs, OrchardModule module)
 {
     return module.Features.Select(f => new FeatureNode(vfs, f));
 }
Ejemplo n.º 2
0
 public ModuleNode(IPowerShellVfs vfs, OrchardModule module)
     : base(vfs, module.Name, GetSubNodes(vfs, module))
 {
     this.Item = module;
 }