예제 #1
0
 private void GetNodesFlat(JQTreeNodeCollection nodes, JQTreeNodeCollection result)
 {
     foreach (JQTreeNode jQTreeNode in nodes)
     {
         result.Add(jQTreeNode);
         if (jQTreeNode.Nodes.Count > 0)
         {
             this.GetNodesFlat(jQTreeNode.Nodes, result);
         }
     }
 }
예제 #2
0
        public JQTreeNodeCollection GetAllNodesFlat(JQTreeNodeCollection nodes)
        {
            JQTreeNodeCollection jQTreeNodeCollection = new JQTreeNodeCollection();

            foreach (JQTreeNode jQTreeNode in nodes)
            {
                jQTreeNodeCollection.Add(jQTreeNode);
                if (jQTreeNode.Nodes.Count > 0)
                {
                    this.GetNodesFlat(jQTreeNode.Nodes, jQTreeNodeCollection);
                }
            }
            return(jQTreeNodeCollection);
        }