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

Skip to content
Snippets Groups Projects
Commit 8071cebb authored by Michael KRISPER's avatar Michael KRISPER
Browse files

ModalResults Serializable

parent c056731c
No related branches found
No related tags found
No related merge requests found
......@@ -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>()) {
......
......@@ -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" />
......
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