How do you define the layout?
If you have on the Form only these for Panes you don't need to get all Nodes recursively, you will have only these four Nodes.
You could also define a Pane object as the current pane.
When you set a Pane visible, you set the CurrentPane to this Pane and when you want to change, you set CurrentPane.Visible to false, set the 'new' Pane to visible and set this one to CurrentPane.
CurrentPane holds a reference to the current visible Pane.
When you set Visible = False, you don't need to set Enabled = False !