Exemplo n.º 1
0
        async void Navigated()
        {
            var newPic = false;

            if (Locator.NavigationService.CurrentPage == VLCPage.MusicPlayerPage)
            {
                if (Locator.MusicPlayerVM.CurrentTrack == null)
                {
                    return;
                }

                var album = await Locator.MediaLibrary.LoadAlbum(Locator.MusicPlayerVM.CurrentTrack.AlbumId);

                if (album != null)
                {
                    if (album.IsPictureLoaded)
                    {
                        currentImg = new Img(album.AlbumCoverFullUri);
                        newPic     = true;
                    }
                }
            }
            else
            {
                newPic         = false;
                clearSlideshow = true;
            }

            if (newPic)
            {
                MetroSlideshow.canvas.Paused = false;
                frame      = OutroFrameThreshold;
                fastChange = true;
            }
            return;
        }
Exemplo n.º 2
0
 public void AddImg(Img img)
 {
     Imgs.Add(img);
 }