private FixupLevelProjectResults ( object sender, |
||
sender | object | |
e | ||
Результат | void |
private void FixupLevelProjectResults(object sender, NotifyCollectionChangedEventArgs e)
{
if (e.NewItems != null)
{
foreach (LevelProjectResult item in e.NewItems)
{
item.UserInfo = this;
}
}
if (e.OldItems != null)
{
foreach (LevelProjectResult item in e.OldItems)
{
if (ReferenceEquals(item.UserInfo, this))
{
item.UserInfo = null;
}
}
}
}