Example #1
0
 public static IEnumerable <Window> Enumerate(Desktop desktop)
 {
     foreach (var handle in ApiWrapper.EnumDesktopWindows(desktop.Id))
     {
         yield return(CreateFrom(handle));
     }
 }
Example #2
0
 public static IEnumerable <WindowStation> Enumerate()
 {
     foreach (var(winStaId, winSta) in ApiWrapper.EnumWindowStations())
     {
         yield return(new WindowStation()
         {
             Id = winStaId,
             Name = winSta,
         });
     }
 }
Example #3
0
 public static IEnumerable <Desktop> Enumerate(WindowStation winSta)
 {
     foreach (var(desktopId, desktop) in ApiWrapper.EnumDesktops(winSta.Id))
     {
         yield return(new Desktop()
         {
             Id = desktopId,
             Name = desktop,
         });
     }
 }