absturz mit X behoben

This commit is contained in:
2023-09-09 09:47:48 +02:00
parent b6d36d7bf5
commit 6c216ca189
2 changed files with 7 additions and 9 deletions

View File

@@ -41,7 +41,6 @@ public static class Helper
}
else
{
for (int i = 0; i < datas.Length - 1; i++)
{
strasse += datas[i] + " ";
@@ -65,25 +64,25 @@ public static class Helper
bool SourceFounded = false;
for(int j = i; j < datas.Length; j++)
{
Trace.WriteLine(internalCounter);
var nFound = datas[j].IndexOf("€");
if(nFound == -1)
{
if (temp.Amount == 0)
{
var xFound = datas[j].IndexOf("x");
if(xFound >= 1 && xFound <= 2)
if (xFound >= 1 && xFound <= 2)
{
temp.Amount = Convert.ToInt32(datas[j].Substring(0, xFound));
temp.GERName = datas[j].Substring(xFound + 1).Trim();
}
}
if(internalCounter == 1)
{
temp.ENGName = datas[j];
}
if(internalCounter == 2)
{
var d = datas[j].IndexOf("#");
if (datas[j].IndexOf("#") > -1)
{
temp.CardNumber = datas[j];

File diff suppressed because one or more lines are too long