Esempio n. 1
0
        public bool SetBrightness(double brightnessPercent)
        {
            if (!_canUseWmiBrightness)
            {
                return(false);
            }

            WmiHelper.SetBrightness(brightnessPercent);
            return(true);
        }
Esempio n. 2
0
 public WmiBrightnessService()
 {
     _canUseWmiBrightness = WmiHelper.CanBeUsed();
 }