示例#1
0
        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);
        }
示例#2
0
        protected override MenuItemCollection GetMenuForNode(string id, FormDataCollection queryStrings)
        {
            var treeNode = TreeService.MakeLookTreeNode(id, queryStrings);

            return(treeNode.GetMenu());
        }