void EventReceiverListCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
{
switch (e.Action)
{
case System.Collections.Specialized.NotifyCollectionChangedAction.Add:
foreach (object o in e.NewItems)
{
Receiver receiver = o as Receiver;
iMediaPlayerConfiguration.ReceiverAdded(receiver);
}
break;
case System.Collections.Specialized.NotifyCollectionChangedAction.Remove:
foreach (object o in e.OldItems)
{
Receiver receiver = o as Receiver;
iMediaPlayerConfiguration.ReceiverRemoved(receiver);
}
break;
default:
break;
}
}