Syncfusion geupdated
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user