private void RegisteredMods_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e)
{
if (!EnvironmentInfo.Settings.CheckForNewModVersions)
return;
switch (e.Action)
{
case NotifyCollectionChangedAction.Add:
case NotifyCollectionChangedAction.Replace:
foreach (IMod modMod in e.NewItems)
((Func<IMod, IModInfo>)CheckForUpdate).BeginInvoke(modMod, GotNewVersionNumber, modMod);
break;
case NotifyCollectionChangedAction.Remove:
case NotifyCollectionChangedAction.Reset:
foreach (IMod modMod in e.OldItems)
m_oclNewInfo.RemoveAll(x => x.Mod == modMod);
break;
}
}