private void ActivatePanel(AbstractPanelMenu panel) { ActivatePanel(panel.getId()); }
private void HidePanels() { foreach (AbstractPanelMenu panel in panels) { panel.hide(); } activePanel = null; }
private void ActivatePanel(MenuPanel panelId) { foreach (AbstractPanelMenu panel in panels) { if (panel.getId() == panelId) { activePanel = panel; panel.show(); }else{ panel.hide(); } } }