Ejemplo n.º 1
0
        private static void UpdateWallpaper()
        {
            var myPicturesPath = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
            var temporaryPath = Path.Combine(myPicturesPath, "Himawari8", "earth.png");

            var image = new Himawari8Image();
            image.Save(temporaryPath);
            image.Dispose();

            if (image.SucceededDownloading)
            {
                Wallpaper.Set(temporaryPath, WallpaperStyle.Centered);
            }
        }
Ejemplo n.º 2
0
        private static void UpdateWallpaper()
        {
            var myPicturesPath = Environment.GetFolderPath(Environment.SpecialFolder.MyPictures);
            var temporaryPath  = Path.Combine(myPicturesPath, "Himawari8", "earth.png");

            var image = new Himawari8Image();

            image.Save(temporaryPath);
            image.Dispose();

            if (image.SucceededDownloading)
            {
                Wallpaper.Set(temporaryPath, WallpaperStyle.Centered);
            }
        }