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; }
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; }