diff --git a/VectoCore/VectoCore/Models/Simulation/Data/ModalResult.cs b/VectoCore/VectoCore/Models/Simulation/Data/ModalResult.cs index db5fd352f6d31640f0b35961556af535f4e4e498..4c98903fd6f0575218165859ffa05b23ef49990e 100644 --- a/VectoCore/VectoCore/Models/Simulation/Data/ModalResult.cs +++ b/VectoCore/VectoCore/Models/Simulation/Data/ModalResult.cs @@ -33,6 +33,7 @@ using System; using System.ComponentModel; using System.Data; using System.Reflection; +using System.Runtime.Serialization; using TUGraz.VectoCommon.Exceptions; using TUGraz.VectoCommon.Utils; using TUGraz.VectoCore.Utils; @@ -42,6 +43,7 @@ using TUGraz.VectoCore.Utils; namespace TUGraz.VectoCore.Models.Simulation.Data { [DesignerCategory("")] // Full qualified attribute needed to disable design view in VisualStudio + [Serializable] public class ModalResults : DataTable { public static class ExtendedPropertyNames @@ -51,6 +53,8 @@ namespace TUGraz.VectoCore.Models.Simulation.Data public const string ShowUnit = "showUnit"; } + protected ModalResults(SerializationInfo info, StreamingContext context) : base(info, context){} + public ModalResults() { foreach (var value in EnumHelper.GetValues<ModalResultField>()) { diff --git a/VectoCore/VectoCore/VectoCore.csproj b/VectoCore/VectoCore/VectoCore.csproj index 645bd17134fda1be7be7c8c3e5b1b02410d7ae60..fa99d46a5000ca58ed4e98ed38d0f68e6148e044 100644 --- a/VectoCore/VectoCore/VectoCore.csproj +++ b/VectoCore/VectoCore/VectoCore.csproj @@ -240,7 +240,6 @@ <Compile Include="Models\SimulationComponent\IGearbox.cs" /> <Compile Include="Models\Connector\Ports\ISimulationPort.cs" /> <Compile Include="Models\SimulationComponent\Impl\DistanceBasedDrivingCycle.cs" /> - <Compile Include="Models\SimulationComponent\Impl\TimeBasedDrivingCycle.cs" /> <Compile Include="Models\SimulationComponent\Impl\CombustionEngine.cs" /> <Compile Include="Models\SimulationComponent\Impl\Gearbox.cs" /> <Compile Include="Models\SimulationComponent\Impl\Wheels.cs" />