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

Skip to content
Snippets Groups Projects
Commit 02434757 authored by Harald MARTINI's avatar Harald MARTINI
Browse files

ignore ATEcoRollReleaseLockupClutch in ADAS Getter

parent 29f7bb4a
No related branches found
No related tags found
No related merge requests found
......@@ -888,8 +888,7 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
{
if (EngineStopStartNullable.HasValue
|| EcoRollTypeNullable.HasValue
|| PredictiveCruiseControlNullable.HasValue
|| ATEcoRollReleaseLockupClutch.HasValue) {
|| PredictiveCruiseControlNullable.HasValue) {
return this;
} else {
return null;
......@@ -1197,7 +1196,7 @@ namespace VECTO3GUI2020.ViewModel.MultiStage.Implementation
result =
$"{NameResolver.ResolveName(propertyName, BusStrings.ResourceManager, Strings.ResourceManager)} has to be set if editing is enabled.";
} else {
if (propertyValue.GetType() == typeof(string) && string.IsNullOrWhiteSpace(propertyValue as string))
if (propertyValue is string value && string.IsNullOrWhiteSpace(value))
{
result =
$"{NameResolver.ResolveName(propertyName, BusStrings.ResourceManager, Strings.ResourceManager)} has to be set if editing is enabled.";
......
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