public void LoadPlaylist(Playlist playlist) { EventAggregator.Publish(new StopMessage()); PlaylistManagementService.Clear(); GoBack(); var playlistItemCollection = new PlaylistItemCollection(); playlistItemCollection.AddRange(playlist.Entries.Select(e => e.AsPlaylistItem(SubsonicService))); PlaylistManagementService.LoadPlaylist(playlistItemCollection); }
public void LoadPlaylist(PlaylistItemCollection playlistItemCollection) { if (playlistItemCollection == null) { return; } StopPlaybackAction(); Items.Clear(); Items.AddRange(playlistItemCollection); }