Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

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

AirDrag: Changed Entries from double to SquareMeter

parent ca70a618
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,9 @@
*/
using System.Data;
using System.Diagnostics;
using System.Linq;
using TUGraz.VectoCommon.Utils;
using TUGraz.VectoCore.Utils;
namespace TUGraz.VectoCore.Models.Declaration
......@@ -51,16 +53,19 @@ namespace TUGraz.VectoCore.Models.Declaration
{
Data = table.Rows.Cast<DataRow>().ToDictionary(
row => row.Field<string>("Parameters"),
row => new Entry(row.ParseDouble("a1"), row.ParseDouble("a2"), row.ParseDouble("a3")));
row => new Entry(row.ParseDouble("a1").SI<SquareMeter>(),
row.ParseDouble("a2").SI<SquareMeter>(),
row.ParseDouble("a3").SI<SquareMeter>()));
}
[DebuggerDisplay("A1: {A1}, A2: {A2}, A3: {A3}")]
public struct Entry
{
public readonly double A1;
public readonly double A2;
public readonly double A3;
public readonly SquareMeter A1;
public readonly SquareMeter A2;
public readonly SquareMeter A3;
public Entry(double a1, double a2, double a3)
public Entry(SquareMeter a1, SquareMeter a2, SquareMeter a3)
{
A1 = a1;
A2 = a2;
......
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