Syncfusion geupdated

This commit is contained in:
Husky
2019-10-10 16:43:18 +02:00
parent 30f0956d21
commit c2bbeb7e50
11 changed files with 138 additions and 93 deletions

View File

@@ -15,6 +15,7 @@ using FluentFTP;
using System.Collections;
using CSVParser;
using BerichtGen;
using SanShared.Exceptions;
namespace SanSystem
{
@@ -224,14 +225,23 @@ namespace SanSystem
IEnumerable<string> files = Directory.EnumerateFiles(myPath, "*.csv", SearchOption.AllDirectories);
IReadCSVData csvFile = null;
List<UVcsvStrukture> struktures = null;
if (files.Count().Equals(0)) return false;
csvFile = CsvParserFactory.ReadCSVFile(AcceptedCSVFormats.BLUELIGHT, files.Last());
try
{
struktures = csvFile.ReadCSVStrukture();
try
{
struktures = csvFile.ReadCSVStrukture();
}
catch(CSVImportException)
{
MessageBox.Show("Es scheint den Falschen Anlagentyp angegeben worden sein.", "CSV Datei konnte nicht gelesen werden", MessageBoxButtons.OK, MessageBoxIcon.Error);
return false;
}
inliner.AnfangAushaertung = struktures.Select(x => x.Zeitstempel).Min();
inliner.EndeAushaertung = struktures.Select(x => x.Zeitstempel).Max();
inliner.Rueckholgeschwindigkeit = 0;