//关闭面板 public void ClosePanel(string name) { PanelBase panel = (PanelBase)dict[name]; if (panel == null) { return; } dict.Remove(name); panel.CloseAnimation(); }