void TeardownLayout() { SaveLayout(); if (isPaned) { pane.Remove(powerView.View); pane.Remove(debugView.View); top.Remove(pane); } else { top.Remove(debugView.View); } }