private void LoadPlaylist(BufferItem item) { PlaylistBufferItem pbi = item as PlaylistBufferItem; _output.OutputMessage(StringStore.LoadingPlaylist, false); var playlist = SpotifyController.GetPlaylist(pbi.Model.Pointer, true); buffers.Add(new PlaylistBufferList(playlist)); buffers.CurrentListIndex = buffers.Count - 1; var playlistBuffer = buffers.CurrentList; _output.OutputMessage(playlistBuffer.ToString(), false); _output.OutputMessage(String.Format("{0} {1}", playlist.TrackCount, StringStore.TracksLoaded), false); var tracks = playlist.GetTracks(); tracks.ForEach(t => { playlistBuffer.Add(new TrackBufferItem(t)); }); }