Esempio n. 1
0
        public static SectionRootNode CreateMultiTreeSectionRoot(string nodeId, TreeNodeCollection children)
        {
            var sectionRoot = new SectionRootNode(nodeId, "", "")
            {
                IsContainer = true,
                Children    = children
            };

            //some metadata as to whether or not this section contains any trees
            sectionRoot.AdditionalData["containsTrees"] = children.Any();

            return(sectionRoot);
        }