Ejemplo n.º 1
0
        private static void OnSystemEventsOnPowerModeChanged(object sender, PowerModeChangedEventArgs e)
        {
            if (LogToFile)
            {
                _batteryService.LogSystemPowerStatus(e.Mode);
            }

            if (e.Mode == PowerModes.StatusChange)
            {
                _profileBatteryEventHandler.HandlePowerStateChange(_batteryService);
            }
        }