diff --git a/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLElectricMotorDeclarationInputDataProvider.cs b/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLElectricMotorDeclarationInputDataProvider.cs index 109bd6d0f9ed5bb3ad58f4aa902d76f4aa589ecc..ab5a24e25b72b105e862b5842b6d3188952fb7e8 100644 --- a/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLElectricMotorDeclarationInputDataProvider.cs +++ b/VectoCore/VectoCore/InputData/FileIO/XML/Declaration/DataProvider/XMLElectricMotorDeclarationInputDataProvider.cs @@ -11,6 +11,7 @@ using TUGraz.VectoCommon.Models; using TUGraz.VectoCommon.Resources; using TUGraz.VectoCommon.Utils; using TUGraz.VectoCore.InputData.FileIO.XML.Common; +using TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider; using TUGraz.VectoCore.InputData.FileIO.XML.Declaration.Interfaces; using TUGraz.VectoCore.Utils; @@ -255,7 +256,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider : base(componentNode, sourceFile) { _vehicle = vehicle; - SourceType = DataSourceType.XMLEmbedded; + //SourceType = DataSourceType.XMLEmbedded; ValidateGearCount(); } @@ -350,7 +351,7 @@ namespace TUGraz.VectoCore.InputData.FileIO.XML.Declaration.DataProvider } } - if (DragCurves.Count > 1 && AnyMissingGear(currentGears)) + if (DragCurves.Count > 1 && AnyMissingGear(currentGears)) { throw new ArgumentException("The DragCurve contains a gear which was not specified under gears"); } } diff --git a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/PrimaryComponents/VIFAngleDriveType.cs b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/PrimaryComponents/VIFAngleDriveType.cs index d47e814470b873178f976f2df39fbff5f72d31ac..c76cc5e37e271822d01d06ae7bbd1b9cc6f7ab9d 100644 --- a/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/PrimaryComponents/VIFAngleDriveType.cs +++ b/VectoCore/VectoCore/OutputData/XML/DeclarationReports/VehicleInformationFile/VehicleInformationFile_0_1/PrimaryComponents/VIFAngleDriveType.cs @@ -17,7 +17,7 @@ namespace TUGraz.VectoCore.OutputData.XML.DeclarationReports.VehicleInformationF public XElement GetElement(IDeclarationInputDataProvider inputData) { var angelDrive = inputData.JobInputData.Vehicle.Components.AngledriveInputData; - if (angelDrive == null || angelDrive.Type != AngledriveType.SeparateAngledrive) + if (angelDrive == null || angelDrive.Type != AngledriveType.SeparateAngledrive) { return null; }