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

Skip to content
Snippets Groups Projects
Commit 6b9ba143 authored by Franz KOBER josef's avatar Franz KOBER josef
Browse files

minor fix in auxiliaries in case of new file

parent 8b3c776a
No related branches found
No related tags found
No related merge requests found
......@@ -139,7 +139,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _dayRunningLightsLED, value))
{
var changed = true;
if (_busAuxiliaries.ElectricConsumers != null)
if (_busAuxiliaries?.ElectricConsumers != null)
changed = _busAuxiliaries.ElectricConsumers.DayrunninglightsLED != value;
SetChangedProperty(changed);
}
......@@ -153,7 +153,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _headlightyLED, value))
{
var changed = true;
if (_busAuxiliaries.ElectricConsumers != null)
if (_busAuxiliaries?.ElectricConsumers != null)
changed = _busAuxiliaries.ElectricConsumers.HeadlightsLED != value;
SetChangedProperty(changed);
}
......@@ -167,7 +167,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _positionlightsLED, value))
{
var changed = true;
if (_busAuxiliaries.ElectricConsumers != null)
if (_busAuxiliaries?.ElectricConsumers != null)
changed = _busAuxiliaries.ElectricConsumers.PositionlightsLED != value;
SetChangedProperty(changed);
}
......@@ -181,7 +181,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _breaklightsLED, value))
{
var changed = true;
if (_busAuxiliaries.ElectricConsumers != null)
if (_busAuxiliaries?.ElectricConsumers != null)
changed = _busAuxiliaries.ElectricConsumers.BrakelightsLED != value;
SetChangedProperty(changed);
}
......@@ -195,7 +195,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _interiorLightsLED, value))
{
var changed = true;
if (_busAuxiliaries.ElectricConsumers != null)
if (_busAuxiliaries?.ElectricConsumers != null)
changed = _busAuxiliaries.ElectricConsumers.InteriorLightsLED != value;
SetChangedProperty(changed);
}
......@@ -209,7 +209,7 @@ namespace VECTO3GUI.ViewModel.Impl
{
if (SetProperty(ref _doorDriveTechnology, value))
{
var changed = _busAuxiliaries.PneumaticConsumers != null
var changed = _busAuxiliaries?.PneumaticConsumers != null
? _busAuxiliaries.PneumaticConsumers.DoorDriveTechnology != value
: value != default(ConsumerTechnology);
SetChangedProperty(changed);
......@@ -224,7 +224,7 @@ namespace VECTO3GUI.ViewModel.Impl
{
if (SetProperty(ref _systemConfiguration, value))
{
var changed = _busAuxiliaries.HVACAux != null
var changed = _busAuxiliaries?.HVACAux != null
? _busAuxiliaries.HVACAux.SystemConfiguration != value
: value != default(BusHVACSystemConfiguration);
SetChangedProperty(changed);
......@@ -239,7 +239,7 @@ namespace VECTO3GUI.ViewModel.Impl
{
if (SetProperty(ref _compressorTypeDriver, value))
{
var changed = _busAuxiliaries.HVACAux != null
var changed = _busAuxiliaries?.HVACAux != null
? _busAuxiliaries.HVACAux.CompressorTypeDriver != value
: value != default(ACCompressorType);
SetChangedProperty(changed);
......@@ -254,7 +254,7 @@ namespace VECTO3GUI.ViewModel.Impl
{
if (SetProperty(ref _compressorTypePassenger, value))
{
var changed = _busAuxiliaries.HVACAux != null
var changed = _busAuxiliaries?.HVACAux != null
? _busAuxiliaries.HVACAux.CompressorTypePassenger != value
: value != default(ACCompressorType);
SetChangedProperty(changed);
......@@ -269,7 +269,7 @@ namespace VECTO3GUI.ViewModel.Impl
{
if (SetProperty(ref _auxHeaterPower, value))
{
var changed = _busAuxiliaries.HVACAux != null
var changed = _busAuxiliaries?.HVACAux != null
? _busAuxiliaries.HVACAux.AuxHeaterPower != value
: value != default(Watt);
SetChangedProperty(changed);
......@@ -285,7 +285,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _doubleGlasing, value))
{
var changed = true;
if (_busAuxiliaries.HVACAux != null)
if (_busAuxiliaries?.HVACAux != null)
changed = _busAuxiliaries.HVACAux.DoubleGlasing != value;
SetChangedProperty(changed);
}
......@@ -300,7 +300,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _heatPump, value))
{
var changed = true;
if (_busAuxiliaries.HVACAux != null)
if (_busAuxiliaries?.HVACAux != null)
changed = _busAuxiliaries.HVACAux.HeatPump != value;
SetChangedProperty(changed);
}
......@@ -315,7 +315,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _adjustableAuxiliaryHeater, value))
{
var changed = true;
if (_busAuxiliaries.HVACAux != null)
if (_busAuxiliaries?.HVACAux != null)
changed = _busAuxiliaries.HVACAux.AdjustableAuxiliaryHeater != value;
SetChangedProperty(changed);
}
......@@ -330,7 +330,7 @@ namespace VECTO3GUI.ViewModel.Impl
if (SetProperty(ref _separateAirDistributionDucts, value))
{
var changed = true;
if (_busAuxiliaries.HVACAux != null)
if (_busAuxiliaries?.HVACAux != null)
changed = _busAuxiliaries.HVACAux.SeparateAirDistributionDucts != value;
SetChangedProperty(changed);
}
......@@ -361,7 +361,8 @@ namespace VECTO3GUI.ViewModel.Impl
{
_busAuxiliaries = inputData.JobInputData.Vehicle.Components.BusAuxiliaries;
SetValues(_busAuxiliaries);
} else {
SetAllowedValues();
}
......
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