public void AddPanelToGroup(Panel panel, string groupId) { if (!PanelGroups.ContainsKey(groupId)) { PanelGroups.Add(groupId, new List <Panel>()); } PanelGroups[groupId].Add(panel); }
public void SetPanelGroupVisibilty(string groupId, string panelId) { if (PanelGroups.ContainsKey(groupId)) { foreach (var uiPanel in PanelGroups[groupId]) { uiPanel.Visible = (uiPanel.ID == panelId); } } }