Пример #1
0
        public bool SetBrightness(double brightnessPercent)
        {
            if (!_canUseWmiBrightness)
            {
                return(false);
            }

            WmiHelper.SetBrightness(brightnessPercent);
            return(true);
        }
Пример #2
0
 public WmiBrightnessService()
 {
     _canUseWmiBrightness = WmiHelper.CanBeUsed();
 }