public async void Apply() { CanClean = true; CanGenerate = true; //await var para = new WallpapaerParameter() { Dir = Dir, EnterPoint = EndPoint, Args = Arguments }; await WallpaperManger.ApplyWallpaper(SelectedType, para); }
public async void ApplyWallpaper(Wallpaper w) { currentShowWallpaper = w; await WallpaperManger.ApplyWallpaper(w.Type, w.PackInfo); }