public void startGame() { activePanel.newPnl.Controls.Clear(); activePanel.newPnl.Visible = false; activePanel.objects.Clear(); activePanel.objects = null; this.Controls.Clear(); activePanel = null; Classes.Panels.GamePanel.startGame(); }
private void switchPanelToNew(Classes.InterfaceObjects.PanelWrapper panelWrap) { this.Controls.Clear(); this.Controls.Add(panelWrap.newPnl); activePanel = panelWrap; }