コード例 #1
0
        public void SetCharger(IChargerInterface charger)
        {
            if (charger == null)
            {
                throw new ArgumentNullException(nameof(charger));
            }

            ChargerService = charger;
            ChargerService.SupplyVoltageLimit = GRID_VOLTAGE;
            ChargerService.SupplyCurrentLimit = this.SupplyCurrentLimit;
        }
コード例 #2
0
 public void SetCharger(IChargerInterface charger)
 {
     ChargerService = charger;
     ChargerService.SupplyVoltageLimit = GRID_VOLTAGE;
     ChargerService.SupplyCurrentLimit = this.SupplyCurrentLimit;
 }