Example #1
0
        async void ChannelSelected(object sender, Channel ch)
        {
            // SONG CLICKED
            DismissViewController(true, null);
            await MusicService.GetAndStoreRecentSongsAsync();

            if (!string.IsNullOrEmpty(Variables.NowPlaying.ArtistId))
            {
                NPArtist = await MusicService.GetArtistById(Convert.ToInt32(Variables.NowPlaying.ArtistId));

                NowPlayingArtistImageView.Image = await Functions.LoadImage(NPArtist.ImageUrl);
            }
            ChannelTitleLabel.Text     = Variables.CurrentChannel.Title.ToUpper();
            NowPlayingTitleLabel.Text  = Variables.NowPlaying.SongTitle;
            NowPlayingArtistLabel.Text = Variables.NowPlaying.ArtistName;
            NowPlayingImageView.Image  = await Functions.LoadImage(Variables.NowPlaying.AlbumImage);

            RecentsImageView.Image = await Functions.LoadImage(Variables.NowPlaying.AlbumImage);

            await SR.Disconnect();

            await SR.ConnectAsync();

            await UpdateLastPlayedList();
        }