private UIItem Close(string typeName) { UIItem item = Find(typeName); if (item != null) { item.Close(); } return(item); }
private UIItem Open(string typeName) { UIItem item = Find(typeName); if (item != null) { item.Open(); } return(item); }
public UIItem Open(Type type) { UIItem item = Find(type.Name); if (item == null) { item = Activator.CreateInstance(type) as UIItem; UIDict.Add(type.Name, item); } Open(type.Name); return(item); }
public UIItem Close(Type type) { UIItem item = Close(type.Name); return(item); }