public virtual IEnumerable<Node> GetChildren(Node node) { return node.GetChildNodes(); }
/// <summary> /// Adds the tree node. /// </summary> /// <param name="parentTreeNode">The parent tree node.</param> /// <param name="node">The node.</param> private void AddTreeNode(TreeNode parentTreeNode, Node node) { TreeNode treeNode = this.GetTreeNode(node); parentTreeNode.ChildNodes.Add(treeNode); foreach (Node childNode in node.GetChildNodes()) { this.AddTreeNode(treeNode, childNode); } }