private void RecreateConfigPanel() { if (currentConfigPanel != null) { this.splitAutoCat.Panel2.Controls.Remove(currentConfigPanel); } if (current != null) { currentConfigPanel = AutoCatConfigPanel.CreatePanel(current, ownedGames, AutoCatList); } if (currentConfigPanel != null) { currentConfigPanel.Dock = DockStyle.Fill; this.splitAutoCat.Panel2.Controls.Add(currentConfigPanel); } }