Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Unverified Commit 046c1284 authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

hide ADAS input fields and NG tank system input field depending on powertrain architecture

parent 59b1038b
No related branches found
No related tags found
No related merge requests found
......@@ -692,6 +692,8 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
set { SetProperty(ref _tankSystem, value); }
}
public virtual bool TankSystemEnabled => true;
public MultistageParameterViewModel TankSystemVM
{
get => _parameterViewModels[nameof(TankSystem)];
......@@ -954,6 +956,8 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
}
}
public virtual bool EngineStopStartEnabled => true;
public bool EngineStopStart
{
get
......@@ -979,6 +983,8 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
}
}
public virtual bool EcoRollEnabled => true;
public PredictiveCruiseControlType? PredictiveCruiseControlNullable
{
get => _predictiveCruiseControlNullable;
......@@ -988,6 +994,8 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
}
}
public virtual bool PredictiveCruiseControlEnabled => true;
public PredictiveCruiseControlType PredictiveCruiseControl
{
get
......@@ -1007,6 +1015,8 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
}
}
public virtual bool ATEcoRollReleaseLockupClutchEnabled => true;
#endregion
......@@ -1324,6 +1334,11 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
get => CompletedBusArchitecture.HEV;
}
public override bool EcoRollEnabled => false;
public override bool ATEcoRollReleaseLockupClutchEnabled => false;
public override string XMLType => XMLTypes.Vehicle_Hev_CompletedBusDeclarationType;
}
......@@ -1343,6 +1358,16 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
{
get { return CompletedBusArchitecture.PEV; }
}
public override bool TankSystemEnabled => false;
public override bool EcoRollEnabled => false;
public override bool EngineStopStartEnabled => false;
public override bool ATEcoRollReleaseLockupClutchEnabled => false;
public override string XMLType => XMLTypes.Vehicle_Pev_CompletedBusDeclarationType;
#endregion
}
......@@ -1361,6 +1386,16 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
public override CompletedBusArchitecture Architecture =>
CompletedBusArchitecture.IEPC;
public override bool TankSystemEnabled => false;
public override bool EcoRollEnabled => false;
public override bool EngineStopStartEnabled => false;
public override bool ATEcoRollReleaseLockupClutchEnabled => false;
public override string XMLType => XMLTypes.Vehicle_Iepc_CompletedBusDeclarationType;
#endregion
}
......
......@@ -48,7 +48,7 @@
Content="{Binding ParameterViewModels[AirdragModifiedEnum]}"/>
<ContentControl
Content="{Binding ParameterViewModels[TankSystem]}"/>
Content="{Binding ParameterViewModels[TankSystem]}" Visibility="{Binding TankSystemEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"/>
<ContentControl
Content="{Binding ParameterViewModels[RegisteredClass]}"/>
......@@ -115,19 +115,19 @@
<Label Content="Advanced Driver Assistant Systems" Style="{DynamicResource LabelStyle1}"/>
<ContentControl
Content="{Binding ParameterViewModels[EngineStopStartNullable]}"/>
Content="{Binding ParameterViewModels[EngineStopStartNullable]}" Visibility="{Binding EngineStopStartEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"/>
<ContentControl
Content="{Binding ParameterViewModels[EcoRollTypeNullable]}"/>
Content="{Binding ParameterViewModels[EcoRollTypeNullable]}" Visibility="{Binding EcoRollEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"/>
<ContentControl
Content="{Binding ParameterViewModels[PredictiveCruiseControlNullable]}"/>
Content="{Binding ParameterViewModels[PredictiveCruiseControlNullable]}" Visibility="{Binding PredictiveCruiseControlEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"/>
<ContentControl
Content="{Binding ParameterViewModels[ATEcoRollReleaseLockupClutch]}"/>
Content="{Binding ParameterViewModels[ATEcoRollReleaseLockupClutch]}" Visibility="{Binding ATEcoRollReleaseLockupClutchEnabled, Converter={StaticResource BooleanToVisibilityConverter}}"/>
</StackPanel>
</DockPanel>
</ScrollViewer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment