Beispiel #1
0
        private void LoadArtist(BufferItem item)
        {
            ArtistBufferItem abi = item as ArtistBufferItem;

            _output.OutputMessage(StringStore.LoadingArtistAlbums, false);
            buffers.Add(new ArtistBufferList(abi.Model.Name));
            buffers.CurrentListIndex = buffers.Count - 1;
            var artistBuffer = buffers.CurrentList;

            _output.OutputMessage(artistBuffer.ToString(), false);
            var albums = SpotifyController.GetArtistAlbums(abi.Model.ArtistPtr).ToList();

            _output.OutputMessage(String.Format("{0} {1}", albums.Count, StringStore.SearchResults), false);
            albums.ForEach(a =>
            {
                artistBuffer.Add(new AlbumBufferItem(new Album(a)));
            });
        }