private void ChangeCountLockedNodes(int delta) { if (parent != null) { parent.countLockedNodes += delta; parent.ChangeCountLockedNodes(delta); } }