diff --git a/CSVParser/CSVParser.csproj b/CSVParser/CSVParser.csproj
index 3461f5b..27cfc6d 100644
--- a/CSVParser/CSVParser.csproj
+++ b/CSVParser/CSVParser.csproj
@@ -9,9 +9,10 @@
Properties
CSVParser
CSVParser
- v4.7.2
+ v4.6.1
512
true
+
true
diff --git a/SanSystem/HelpFunktion.cs b/SanSystem/HelpFunktion.cs
deleted file mode 100644
index 971a7df..0000000
--- a/SanSystem/HelpFunktion.cs
+++ /dev/null
@@ -1,53 +0,0 @@
-using SanShared;
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace SanSystem
-{
- static class HelpFunktion
- {
- public static List ParseCSVFile(string csvFile)
- {
- /*
- Die geschwindigkeit wird im cm pro sekunde angegeben
- */
- List result = new List();
-
- if (!File.Exists(csvFile)) return null;
- string[] input = File.ReadAllLines(csvFile);
-
-
- DateTime zeit;
- double temperatur;
- double druck;
- int geschwindigkeit;
- foreach (string pars in input)
- {
- UVcsvStrukture uVcsvStrukture = new UVcsvStrukture();
- string[] parts = pars.Split(',');
- if (
- parts[0].Equals("Group1") ||
- parts[1].Equals("(END)") ||
- parts[1].Equals("(START)")
- ) continue;
- DateTime.TryParse(parts[0], out zeit);
- double.TryParse(parts[1].Replace('.', ','), out temperatur);
- double.TryParse(parts[2].Replace('.', ','), out druck);
- int.TryParse(parts[3],out geschwindigkeit);
-
-
- uVcsvStrukture.Zeitstempel = zeit;
- uVcsvStrukture.Druck = druck;
- uVcsvStrukture.Temperatur = temperatur;
- uVcsvStrukture.Geschwindigkeit = geschwindigkeit;
- result.Add(uVcsvStrukture);
- }
-
- return result;
- }
- }
-}
diff --git a/SanSystem/SanSystem.csproj b/SanSystem/SanSystem.csproj
index c865a03..af3b489 100644
--- a/SanSystem/SanSystem.csproj
+++ b/SanSystem/SanSystem.csproj
@@ -168,7 +168,6 @@
frmMain.cs
-
@@ -274,6 +273,10 @@
{3022da07-fd06-4aea-9fc8-00d318e95a82}
BerichtGen
+
+ {3f79bd28-9bf6-4902-8977-41e9e71f8488}
+ CSVParser
+
{b0227727-6cf9-4e2e-9afe-5dd76deaa9db}
Database
diff --git a/SanSystem/UCInliner.cs b/SanSystem/UCInliner.cs
index f0df606..7ebecfd 100644
--- a/SanSystem/UCInliner.cs
+++ b/SanSystem/UCInliner.cs
@@ -14,6 +14,7 @@ using SanShared;
using FluentFTP;
using System.Collections;
using Syncfusion.Windows.Forms.Chart;
+using CSVParser;
namespace SanSystem
{
@@ -285,7 +286,9 @@ namespace SanSystem
IEnumerable files = Directory.EnumerateFiles(myPath, "*.csv", SearchOption.AllDirectories);
- List struktures = HelpFunktion.ParseCSVFile(files.Last());
+ //List struktures = HelpFunktion.ParseCSVFile(files.Last());
+ UVRelining uv = new UVRelining(files.Last());
+ List struktures = uv.ReadCSVStrukture();
inliner.AnfangAushaertung = struktures.Select(x => x.Zeitstempel).Min();
inliner.EndeAushaertung = struktures.Select(x => x.Zeitstempel).Max();