예제 #1
0
 private void CountView(MonitorWallpaperInformation information)
 {
     if (DateTime.Now - information.LastChanged >= TimeSpan.FromSeconds(30) && information.LastChanged != DateTime.MinValue)
     {
         var currentWallpaper = information.CurrentWallpaper;
         Task.Factory.StartNew(() =>
         {
             WallpaperManager.CountView(currentWallpaper);
         });
     }
 }