private void ModuleProvider_Removed(INotifyCollectionChanged itemSet, ModuleProvider item) { item.ModuleManager = null; moduleInfoObservers[item].TryDispose(); moduleInfoObservers.Remove(item); }
private void ModuleProvider_Added(INotifyCollectionChanged itemSet, ModuleProvider item) { moduleInfoObservers.Add(item, item.AvailableModules.Observe <RuntimeModuleInfo>(CocosModuleInfo_Added, CocosModuleInfo_Removed)); item.ModuleManager = this; }