/// <summary>
        /// The get tree node from configuration element.
        /// </summary>
        /// <param name="tree">
        /// The tree.
        /// </param>
        /// <param name="queryStrings">
        /// The query strings.
        /// </param>
        /// <param name="parentTree">
        /// The parent tree.
        /// </param>
        /// <returns>
        /// The <see cref="TreeNode"/>.
        /// </returns>
        private TreeNode GetTreeNodeFromConfigurationElement(TreeElement tree, FormDataCollection queryStrings, TreeElement parentTree = null)
        {
            var hasSubs = tree.SubTree != null && tree.SubTree.GetTrees().Any();

            return CreateTreeNode(
                tree.Id,
                parentTree == null ? string.Empty : parentTree.Id,
                queryStrings,
                tree.Title,
                tree.Icon,
                hasSubs,
                tree.RoutePath);
        }
Пример #2
0
 /// <summary>
 /// Adds an element to the collection
 /// </summary>
 /// <param name="element">
 /// The element.
 /// </param>
 internal void Add(TreeElement element)
 {
     BaseAdd(element);
 }