/// <summary> /// 创建 Panel /// </summary> /// <param name="name"></param> public PanelBase CreatePanel(PanelName name) { PanelBase panel = null; if (!panels.TryGetValue(name, out panel)) { panel = PanelMap.GetPanel(name); panels.Add(name, panel); } panel.CreatePanel(); return(panel); }