Ejemplo n.º 1
0
        /// <summary> Add new root node to this tree </summary>
        /// <param name="Name"> Display name for this new root node (title of the item group at the root node level) </param>
        /// <param name="Link"> Link for this new root node of the tree, or empty if no link </param>
        /// <param name="Value"> Value of this new root node (actually the BibID + '_' + VID) </param>
        /// <returns> Built sorted tree node object </returns>
        public Search_Result_Item_TreeNode Add_Root_Node(string Name, string Link, string Value)
        {
            Search_Result_Item_TreeNode newRootNode = new Search_Result_Item_TreeNode(Name, Link, Value);

            rootNodes.Add(newRootNode);
            return(newRootNode);
        }
Ejemplo n.º 2
0
 private void recurse_and_set_values(Search_Result_Item_TreeNode parent_node, string parent_value)
 {
     foreach (Search_Result_Item_TreeNode childNode in parent_node.ChildNodes)
     {
         childNode.Value           = parent_value + "_" + childNode.Name;
         nodeHash[childNode.Value] = childNode;
         recurse_and_set_values(childNode, childNode.Value);
     }
 }