Esempio n. 1
0
 internal Battery(Windows.Devices.Power.Battery battery)
 {
     InternalDevice = battery;
     _Report        = InternalDevice.GetReport();
     InternalDevice.ReportUpdated += InternalDevice_ReportUpdated;
     InternalDeviceInformation     = DeviceInformation.CreateFromIdAsync(InternalDevice.DeviceId).GetResults();
     DeviceEnumerator.ConnectionStatusChangedByID += DeviceEnumerator_ConnectionStatusChangedByID;
     DeviceEnumerator.DeviceInformationUpdated    += DeviceEnumerator_DeviceInformationUpdated;
 }
Esempio n. 2
0
 private void InternalDevice_ReportUpdated(Windows.Devices.Power.Battery sender, object args)
 {
     _Report = InternalDevice.GetReport();
 }