Пример #1
0
 public void DeleteWallpaper(Wallpaper w)
 {
     try
     {
         if (w == currentShowWallpaper)
         {
             WallpaperManger.Clean();
             currentShowWallpaper = null;
         }
         var currentDir = Directory.GetCurrentDirectory();
         var target     = currentDir + w.PackInfo.Dir;
         Directory.Delete(target, true);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
     }
     RefreshLocalWallpaper();
 }
Пример #2
0
 protected override void OnDeactivate(bool close)
 {
     base.OnDeactivate(close);
     WallpaperManger.Clean();
 }
Пример #3
0
 public void Clean()
 {
     WallpaperManger.Clean();
 }