public void DelComponent(ChannelConfig config) { UI_ConfigComponent component = null; if (componentDic.TryGetValue(config.channelId, out component)) { componentDic.Remove(config.channelId); component.Close(); return; } }