public static bool EnumerateAllNodes( TreeView treeView, EnumerateAllNodesDelegate callback ) { foreach( TreeNode node in treeView.Nodes ) { if( !EnumerateAllNodes( node, callback ) ) return false; } return true; }
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; }
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); }