public void Set(int brightness)
        {
            int brightnessInBounds = Math.Max(0, Math.Min(brightness, 100));

            WindowsSettingsBrightnessController.Set(brightnessInBounds);
            PhisicalBrightnessController.Set((uint)brightnessInBounds);

            LastChanged   = DateTime.Now;
            LastChangedTo = brightness;
        }
        public int Get()
        {
            int windowsBrightness  = WindowsSettingsBrightnessController.Get();
            int?phisicalBrightness = PhisicalBrightnessController.Get();

            if (phisicalBrightness is null)
            {
                return(windowsBrightness);
            }

            return((int)new[] { windowsBrightness, phisicalBrightness }.Average());
        }