private void UpdateTreeNodeValidation(TreeNode tn) { //... foreach (TreeNode ts in tn.Nodes) { UpdateTreeNodeValidation(ts); } }