Example #1
0
 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();
        }
Example #4
0
 public static extern IntPtr MonitorFromRect([In] ref RECT rect, MonitorOption option);
Example #5
0
 public static extern IntPtr MonitorFromWindow(IntPtr handle, MonitorOption option);
Example #6
0
 /// <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));
 }
Example #7
0
 /// <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));
 }
Example #8
0
 public static extern IntPtr MonitorFromWindow(IntPtr handle, MonitorOption option);
Example #9
0
 public static extern IntPtr MonitorFromRect([In]ref RECT rect, MonitorOption option);
Example #10
0
 /// <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);
 }
Example #11
0
 /// <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);
 }