Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 5f0b2903 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

VehicleForm: updated visibility of Engine Stop/Start, EcoRoll and...

VehicleForm: updated visibility of Engine Stop/Start, EcoRoll and ATLockupClutch components based on VehicleType (Conventional, HEV, BEV)
parent 58e665cc
No related branches found
No related tags found
No related merge requests found
This diff is collapsed.
......@@ -555,10 +555,9 @@ Public Class VehicleForm
gbEMTorqueLimits.Enabled = False
'ADAS ---------------------------------------------------------------------
cbEngineStopStart.Enabled = True
cbAtEcoRollReleaseLockupClutch.Enabled = True
cbEcoRoll.DataSource = EnumHelper.GetKeyValuePairs(Of EcoRollType)(Function(t) t.GetName())
cbEcoRoll.Enabled = True
cbEngineStopStart.Visible = True
cbAtEcoRollReleaseLockupClutch.Visible = True
pnEcoRoll.Visible = True
Case VectoSimulationJobType.ParallelHybridVehicle
lblTitle.Text = "Parallel Hybrid Vehicle"
......@@ -580,10 +579,10 @@ Public Class VehicleForm
gbEMTorqueLimits.Enabled = True
'ADAS ---------------------------------------------------------------------
cbEngineStopStart.Enabled = True
cbAtEcoRollReleaseLockupClutch.Enabled = False
cbEcoRoll.DataSource = EnumHelper.GetKeyValuePairs(Of EcoRollType)(Function(t) t.GetName())
cbEcoRoll.Enabled = True
cbEngineStopStart.Visible = True
cbAtEcoRollReleaseLockupClutch.Visible = False
pnEcoRoll.Visible = False
cbEcoRoll.SelectedIndex = 0
Case VectoSimulationJobType.SerialHybridVehicle
lblTitle.Text = "Serial Hybrid Vehicle"
......@@ -606,10 +605,10 @@ Public Class VehicleForm
tpTorqueLimits.Enabled = False
'ADAS ---------------------------------------------------------------------
cbEngineStopStart.Enabled = False
cbAtEcoRollReleaseLockupClutch.Enabled = False
cbEcoRoll.Enabled = False
cbEcoRoll.SelectedIndex = -1
cbEngineStopStart.Visible = False
cbAtEcoRollReleaseLockupClutch.Visible = False
pnEcoRoll.Visible = False
cbEcoRoll.SelectedIndex = 0
Case VectoSimulationJobType.BatteryElectricVehicle
lblTitle.Text = "Battery Electric Vehicle"
......@@ -632,10 +631,10 @@ Public Class VehicleForm
tcVehicleComponents.TabPages.Remove(tpTorqueLimits)
'ADAS ---------------------------------------------------------------------
cbEngineStopStart.Enabled = False
cbAtEcoRollReleaseLockupClutch.Enabled = False
cbEcoRoll.Enabled = False
cbEcoRoll.SelectedIndex = -1
cbEngineStopStart.Visible = False
cbAtEcoRollReleaseLockupClutch.Visible = False
pnEcoRoll.Visible = False
cbEcoRoll.SelectedIndex = 0
Case Else
If Not tcVehicleComponents.TabPages.Contains(tpElectricComponents) Then
......@@ -646,7 +645,9 @@ Public Class VehicleForm
tcVehicleComponents.TabPages.Insert(3, tpGensetComponents)
tpGensetComponents.BindingContext = BindingContext
End If
pnEcoRoll.Visible = True
cbAtEcoRollReleaseLockupClutch.Visible = True
cbEngineStopStart.Visible = True
End Select
End Sub
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment