Example #1
0
 private void InstanceOnBatteryTypeResponse(object sender, BatteryTypeParser e)
 {
     Dispatcher.Invoke(() =>
     {
         BatteryType.TextDetail = $"Left: {e.LeftBatteryType}, Right: {e.RightBatteryType}";
     });
 }
Example #2
0
 private void InstanceOnBatteryTypeResponse(object?sender, BatteryTypeParser e)
 {
     _batteryType.Description = $"{Left}: {e.LeftBatteryType}, {Right}: {e.RightBatteryType}";
     if (BluetoothImpl.Instance.ActiveModel != Models.Buds)
     {
         _batteryType.Description = Loc.Resolve("system_battery_type_unknown");
     }
 }
 private void InstanceOnBatteryTypeResponse(object sender, BatteryTypeParser e)
 {
     Dispatcher.Invoke(() =>
     {
         BatteryType.TextDetail = $"{Left}: {e.LeftBatteryType}, {Right}: {e.RightBatteryType}";
         if (BluetoothService.Instance.ActiveModel == Model.BudsPlus)
         {
             BatteryType.TextDetail = Loc.GetString("system_battery_type_unknown");
         }
     });
 }
Example #4
0
 private void InstanceOnBatteryTypeResponse(object sender, BatteryTypeParser e)
 {
     Dispatcher.Invoke(() =>
     {
         BatteryType.TextDetail = $"Left: {e.LeftBatteryType}, Right: {e.RightBatteryType}";
         if (BluetoothService.Instance.ActiveModel == Model.BudsPlus)
         {
             BatteryType.TextDetail = "Not specified";
         }
     });
 }