/// <summary>
        /// Raises the power changed event.
        /// </summary>
        private static void RaisePowerChanged()
        {
            var arguments = new PowerChangeEventArgs {
                PowerInformation = CurrentStatus
            };

            if (_listeningForPowerEvents)
            {
                _powerChanged(null, arguments);
            }
        }
Beispiel #2
0
 /// <summary>
 /// Raises the power changed event.
 /// </summary>
 private static void RaisePowerChanged()
 {
     var arguments = new PowerChangeEventArgs {PowerInformation = CurrentStatus};
     if (_listeningForPowerEvents)
         _powerChanged(null, arguments);
 }