void Windows() { WriteLine("AVAILABLE WINDOWS" + Underline); // Window Picker is skipped automatically foreach (var source in _platformServices.EnumerateWindows()) { WriteLine($"{source.Handle.ToString().PadRight(10)}: {source.Title}"); } WriteLine(); }
public override bool Deserialize(string Serialized) { var window = _platformServices.EnumerateWindows() .FirstOrDefault(M => M.Title == Serialized); if (window == null) { return(false); } Set(window); return(true); }
RegionPickerWindow() { InitializeComponent(); Left = SystemParameters.VirtualScreenLeft; Top = SystemParameters.VirtualScreenTop; Width = SystemParameters.VirtualScreenWidth; Height = SystemParameters.VirtualScreenHeight; UpdateBackground(); _platformServices = ServiceProvider.Get <IPlatformServices>(); _windows = _platformServices.EnumerateWindows().ToArray(); }