示例#1
0
 public static bool EnumerateAllNodes( TreeView treeView, EnumerateAllNodesDelegate callback )
 {
     foreach( TreeNode node in treeView.Nodes )
     {
         if( !EnumerateAllNodes( node, callback ) )
             return false;
     }
     return true;
 }
示例#2
0
 public static bool EnumerateAllNodes(TreeView treeView, EnumerateAllNodesDelegate callback)
 {
     foreach (TreeNode node in treeView.Nodes)
     {
         if (!EnumerateAllNodes(node, callback))
         {
             return(false);
         }
     }
     return(true);
 }
 private static bool EnumerateAllNodes(TreeNode node, EnumerateAllNodesDelegate callback)
 {
     if (!callback(node))
         return false;
     foreach (TreeNode child in node.Nodes)
     {
         if (!EnumerateAllNodes(child, callback))
             return false;
     }
     return true;
 }
示例#4
0
 static bool EnumerateAllNodes(TreeNode node, EnumerateAllNodesDelegate callback)
 {
     if (!callback(node))
     {
         return(false);
     }
     foreach (TreeNode child in node.Nodes)
     {
         if (!EnumerateAllNodes(child, callback))
         {
             return(false);
         }
     }
     return(true);
 }