public bool SetBrightness(double brightnessPercent) { if (!_canUseWmiBrightness) { return(false); } WmiHelper.SetBrightness(brightnessPercent); return(true); }
public WmiBrightnessService() { _canUseWmiBrightness = WmiHelper.CanBeUsed(); }