private void mivSongs_MediaItemsDeleted(object sender, EventArgs.MediaItemsEventArgs e) { List <Song> songs = new List <Song>(Songs); foreach (Song song in e.MediaItems) { songs.Remove(song); } Songs = new ObservableCollection <Song>(songs); OnMediaItemsDeleted(e); }
private void mivVideos_MediaItemsDeleted(object sender, EventArgs.MediaItemsEventArgs e) { List <Video> videos = new List <Video>(Videos); foreach (Video video in e.MediaItems) { videos.Remove(video); } Videos = new ObservableCollection <Video>(videos); OnMediaItemsDeleted(e); }