public void SetActivePanel(pnlTreeNode Panel) { if (mLastPanel != null) { if (mLastPanel == Panel) return; panelControls.Controls.Clear(); } panelControls.Controls.Add(Panel); mLastPanel = Panel; }
public void SetActivePanel(pnlTreeNode Panel) { if (mLastPanel != null) { if (mLastPanel == Panel) { return; } panelControls.Controls.Clear(); } panelControls.Controls.Add(Panel); mLastPanel = Panel; }