private void FixupEmployee1(object sender, NotifyCollectionChangedEventArgs e)
{
if (e.NewItems != null)
{
foreach (Employee item in e.NewItems)
{
item.Employee2 = this;
}
}
if (e.OldItems != null)
{
foreach (Employee item in e.OldItems)
{
if (ReferenceEquals(item.Employee2, this))
{
item.Employee2 = null;
}
}
}
}