コード例 #1
0
 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);
 }
コード例 #2
0
 public void LoadPlaylist(PlaylistItemCollection playlistItemCollection)
 {
     if (playlistItemCollection == null)
     {
         return;
     }
     StopPlaybackAction();
     Items.Clear();
     Items.AddRange(playlistItemCollection);
 }
コード例 #3
0
        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);
        }