public static bool CheckChargeRate(float ChargeRateValue, string Language)
 {
     if (Language == "German")
     {
         BatteryOk = BatteryFactor.CheckBatteryStatus("Ladestrom", MinChargeRate, MaxChargeRate, ChargeRateValue);
     }
     if (Language == "English")
     {
         BatteryOk = BatteryFactor.CheckBatteryStatus("Charge Rate", MinChargeRate, MaxChargeRate, ChargeRateValue);
     }
     return(BatteryOk);
 }
コード例 #2
0
 public static bool CheckTemperature(float TemperatureValue, string Language)
 {
     if (Language == "German")
     {
         BatteryOk = BatteryFactor.CheckBatteryStatus("Temperatur", MinTemperatureLimit, MaxTemperatureLimit, TemperatureValue);
     }
     if (Language == "English")
     {
         BatteryOk = BatteryFactor.CheckBatteryStatus("Temperature", MinTemperatureLimit, MaxTemperatureLimit, TemperatureValue);
     }
     return(BatteryOk);
 }
 public static bool CheckStateOfCharge(float StateOfCharge, string language)
 {
     if (language == "German")
     {
         BatteryOk = BatteryFactor.CheckBatteryStatus("Ladezustand", MinStateOfCharge, MaxStateOfCharge, StateOfCharge);
     }
     if (language == "English")
     {
         BatteryOk = BatteryFactor.CheckBatteryStatus("State Of Charge", MinStateOfCharge, MaxStateOfCharge, StateOfCharge);
     }
     return(BatteryOk);
 }