private void UpdateImagesRecursive ( TreeNode node ) { node.UpdateImage(); // VSWhidbey 208200: Iterate only through the Nodes collection rather than the // array since an item might have been removed from the collection, and // correspondingly "removed" from the array, but still exist in the array // since the array isn't actually re-dimensioned down to a smaller size. foreach (TreeNode child in node.Nodes) { UpdateImagesRecursive(child); } }
private void UpdateImagesRecursive(TreeNode node) { node.UpdateImage(); foreach (TreeNode node2 in node.Nodes) { this.UpdateImagesRecursive(node2); } }