public static async Task ApplyWallpaper(WallpaperType type, WallpapaerParameter info)
        {
            if (LastWallpaper != null)
            {
                LastWallpaper.Clean();
            }

            LastWallpaper = GetWallper(type);
            await LastWallpaper.Show(info);
        }
Exemple #2
0
        public static async Task ApplyWallpaper(Wallpaper w)
        {
            if (LastWallpaper != null)
            {
                LastWallpaper.Clean();
            }

            LastWallpaper = GetWallper(w.ProjectInfo.Type);
            await LastWallpaper.Show();
        }
 public WallHavenService()
 {
     Wallpaper = new Wallpaper();
     Screen    = new Screen();
     ServiceInfo.Resolution = Screen.GetResolution();
 }