Example #1
0
        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();
        }
Example #2
0
 private bool RemoveFromPlaylist_CanExecute(object arg)
 {
     return(SelectedPlaylistMusic.Any());
 }