Beispiel #1
0
 public static WallpaperPreviewWindow Instance()
 {
     if (instance == null || instance.isClosed)
     {
         instance = new WallpaperPreviewWindow();
     }
     return(instance);
 }
 public static WallpaperPreviewWindow Instance()
 {
     if (instance == null || instance.isClosed)
     {
         instance = new WallpaperPreviewWindow();
     }
     return instance;
 }
Beispiel #3
0
 private void GotWallpaperPreview(object sender, string wallpaperPreviewLocalCachePath, bool isNew)
 {
     this.Dispatcher.Invoke(
         new Action(
             delegate
     {
         if (isNew || ShouldForceShowWallpaperPreviewWindow)
         {
             WallpaperPreviewWindow.Instance().WallpaperFilePath = wallpaperPreviewLocalCachePath;
             WallpaperPreviewWindow.Instance().Show();
         }
     }
             ), null);
     ShouldForceShowWallpaperPreviewWindow = false;
 }