protected override TreeNodeCollection GetTreeNodes(string id, FormDataCollection queryStrings) { var tree = new TreeNodeCollection(); var treeNode = TreeService.MakeLookTreeNode(id, queryStrings); foreach (var childTreeNode in treeNode.GetChildren()) { tree.Add( this.CreateTreeNode( childTreeNode.Id, id, childTreeNode.QueryStrings, childTreeNode.Name, childTreeNode.Icon, childTreeNode.GetChildren().Any(), childTreeNode.RoutePath)); } return(tree); }
protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings) { var treeNode = TreeService.MakeLookTreeNode(id, queryStrings); return(treeNode.GetMenu()); }