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