Beispiel #1
0
 void BatteryChargingStateChanged(object sender, BatteryChargingStateChangedEventArgs args)
 {
     OnBatteryChanged(new BatteryChangedEventArgs
     {
         RemainingChargePercent = RemainingChargePercent,
         IsLow       = RemainingChargePercent <= 15,
         PowerSource = PowerSource,
         Status      = Status
     });
 }
 void OnChargingStateChanged(object sender, BatteryChargingStateChangedEventArgs e) => this.OnChanged();
Beispiel #3
0
 private void OnBatteryChargingStateChanged(object sender, BatteryChargingStateChangedEventArgs e)
 {
     // TODO: Insert code to handle the charging state changes
 }