Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public LockScreen(Rectangle rect, string deviceName, IWallpaperRealEstateSettings lockScreenSettings)
     : base(rect)
 {
     _lockScreenSettings = lockScreenSettings;
     DeviceName          = deviceName;
 }