public OptionInput(TimeoutOption timeoutOption, MonitorOption monitorOption, CityListReader cityListReader) { this.timeoutOption = timeoutOption; this.monitorOption = monitorOption; this.cityListReader = cityListReader; cityListReader.Read(); }
public OpenWeatherSourceReader(ILogger <OpenWeatherSourceReader> logger, MonitorOption monitorOption) { this.logger = logger; this.monitorOption = monitorOption; forecast = new List <OpenWeatherForecast>(); client = new HttpClient(); }
public DarkskySourceReader(ILogger <DarkskySourceReader> logger, MonitorOption monitorOption, CityListReader cityListReader) { this.logger = logger; this.monitorOption = monitorOption; this.cityListReader = cityListReader; forecast = new List <DarkskyForecast>(); client = new HttpClient(); }
public static extern IntPtr MonitorFromRect([In] ref RECT rect, MonitorOption option);
public static extern IntPtr MonitorFromWindow(IntPtr handle, MonitorOption option);
/// <summary> /// Retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle. /// </summary> /// <param name="rect">RECT structure that specifies the rectangle of interest in virtual-screen coordinates.</param> /// <param name="option">Determines the function's return value if the rectangle does not intersect any display monitor.</param> /// <returns></returns> public static IntPtr MonitorFromRect(ref RECT rect, MonitorOption option) { return(NativeMethods.MonitorFromRect(ref rect, option)); }
/// <summary> /// Retrieves a handle to the display monitor that has the largest area of intersection with the bounding rectangle of a specified window. /// </summary> /// <param name="handle">A handle to the window of interest.</param> /// <param name="option">Determines the function's return value if the window does not intersect any display monitor.</param> /// <returns></returns> public static IntPtr MonitorFromWindow(IntPtr handle, MonitorOption option) { return(NativeMethods.MonitorFromWindow(handle, option)); }
public static extern IntPtr MonitorFromRect([In]ref RECT rect, MonitorOption option);
/// <summary> /// Retrieves a handle to the display monitor that has the largest area of intersection with the bounding rectangle of a specified window. /// </summary> /// <param name="handle">A handle to the window of interest.</param> /// <param name="option">Determines the function's return value if the window does not intersect any display monitor.</param> /// <returns></returns> public static IntPtr MonitorFromWindow(IntPtr handle, MonitorOption option) { return NativeMethods.MonitorFromWindow(handle, option); }
/// <summary> /// Retrieves a handle to the display monitor that has the largest area of intersection with a specified rectangle. /// </summary> /// <param name="rect">RECT structure that specifies the rectangle of interest in virtual-screen coordinates.</param> /// <param name="option">Determines the function's return value if the rectangle does not intersect any display monitor.</param> /// <returns></returns> public static IntPtr MonitorFromRect(ref RECT rect, MonitorOption option) { return NativeMethods.MonitorFromRect(ref rect, option); }