public Monitor(Rectangle rect, string deviceName, string sourceFile, IWallpaperRealEstateSettings monitorSettings) : base(rect) { if (string.IsNullOrWhiteSpace(deviceName)) { throw new NullReferenceException("Screen could not be initialized"); } DeviceName = deviceName; _monitorSettings = monitorSettings; TrySetFromPreviousImage(sourceFile); }
public LockScreen(Rectangle rect, string deviceName, IWallpaperRealEstateSettings lockScreenSettings) : base(rect) { _lockScreenSettings = lockScreenSettings; DeviceName = deviceName; }