public void Remove(UIType type) { UI ui; if (!this.uis.TryGetValue(type, out ui)) { return; } this.uis.Remove(type); ui.Dispose(); }