absturz mit X behoben
This commit is contained in:
@@ -41,7 +41,6 @@ public static class Helper
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
for (int i = 0; i < datas.Length - 1; i++)
|
||||
{
|
||||
strasse += datas[i] + " ";
|
||||
@@ -65,17 +64,18 @@ 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)
|
||||
{
|
||||
|
||||
var xFound = datas[j].IndexOf("x");
|
||||
if(xFound >= 1 && xFound <= 2)
|
||||
if (temp.Amount == 0)
|
||||
{
|
||||
temp.Amount = Convert.ToInt32(datas[j].Substring(0, xFound));
|
||||
temp.GERName = datas[j].Substring(xFound + 1).Trim();
|
||||
var xFound = datas[j].IndexOf("x");
|
||||
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)
|
||||
{
|
||||
@@ -83,7 +83,6 @@ public static class Helper
|
||||
}
|
||||
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
Reference in New Issue
Block a user