示例#1
0
 private async void BtnStop_Click(object sender, RoutedEventArgs e)
 {
     var activeWindowTitle = GetActiveWindowTitle();
     //System.Diagnostics.Debug.WriteLine("btnStop_Click " + activeWindowTitle);
     var displayIds = monitorsVM.Where(m => m.Checked).Select(m => m.DeviceName).ToArray();
     await WallpaperApi.CloseWallpaper(displayIds);
 }
 public Task <BaseApiResult> CloseWallpaper(string[] screen)
 {
     if (screen == null)
     {
         screen = WallpaperApi.Screens;
     }
     return(WallpaperApi.CloseWallpaper(screen));
 }