Пример #1
0
 private void battery_EnergySaverStatusChanged(object sender, EnergySaverStatusChangedEventArgs e)
 {
     showActualBatteryState(Battery.ChargeLevel,
                            Battery.PowerSource,
                            Battery.State,
                            e.EnergySaverStatus);
 }
Пример #2
0
        private void OnEnergySaverStatusChanged(object sender, EnergySaverStatusChangedEventArgs e)
        {
            // Process change
            var status = e.EnergySaverStatus;

            enSavStatus.Text = status.ToString();
        }
Пример #3
0
        private void Clipboard_EnergySaverStatusChanged(object sender, EnergySaverStatusChangedEventArgs e)
        {
            // Process change
            var status = e.EnergySaverStatus;

            Console.WriteLine($"Reading: Status: {status}");
        }
 private void OnEnergySaverStatusChanged(object sender, EnergySaverStatusChangedEventArgs e)
 {
     CheckBatteryStatus();
 }
Пример #5
0
 void OnEnergySaverStatusChanged(object sender, EnergySaverStatusChangedEventArgs e)
 {
     OnPropertyChanged(nameof(EnergySaverStatus));
 }
 private void OnEnergySaverStatusChanged(object sender, EnergySaverStatusChangedEventArgs e)
 {
     EnergySaverStateLabel.Text = e.EnergySaverStatus.ToString();
 }
Пример #7
0
 private void battery_EnergySaverStatusChanged(object sender, EnergySaverStatusChangedEventArgs e)
 {
     showEnergySaverStatus(e.EnergySaverStatus);
 }
Пример #8
0
 void Battery_EnergySaverStatusChanged(object sender, EnergySaverStatusChangedEventArgs e)
 {
     GetEnergySaverStatus();
 }