private void RemoveFromPlaylist_Executed(object obj) { var selecteditems = SelectedPlaylistMusic.ToList(); foreach (var song in selecteditems) { if (PlaylistMusic.Any(s => s.Id == song.Id)) { this.PlaylistMusic.Remove(song); } } UpdatePlaylistMusicCollection(); }
private bool RemoveFromPlaylist_CanExecute(object arg) { return(SelectedPlaylistMusic.Any()); }