public void Go(TreeNodeGizmo node) { if (node == null) { return; } Exiting = false; node.Accept(this); foreach (TreeNodeGizmo child in node.GetChildren()) { Go(child); } Exiting = true; node.Accept(this); }