absturz mit X behoben
This commit is contained in:
@@ -41,7 +41,6 @@ public static class Helper
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
for (int i = 0; i < datas.Length - 1; i++)
|
for (int i = 0; i < datas.Length - 1; i++)
|
||||||
{
|
{
|
||||||
strasse += datas[i] + " ";
|
strasse += datas[i] + " ";
|
||||||
@@ -65,17 +64,18 @@ public static class Helper
|
|||||||
bool SourceFounded = false;
|
bool SourceFounded = false;
|
||||||
for(int j = i; j < datas.Length; j++)
|
for(int j = i; j < datas.Length; j++)
|
||||||
{
|
{
|
||||||
Trace.WriteLine(internalCounter);
|
|
||||||
var nFound = datas[j].IndexOf("€");
|
var nFound = datas[j].IndexOf("€");
|
||||||
|
|
||||||
if(nFound == -1)
|
if(nFound == -1)
|
||||||
{
|
{
|
||||||
|
if (temp.Amount == 0)
|
||||||
var xFound = datas[j].IndexOf("x");
|
|
||||||
if(xFound >= 1 && xFound <= 2)
|
|
||||||
{
|
{
|
||||||
temp.Amount = Convert.ToInt32(datas[j].Substring(0, xFound));
|
var xFound = datas[j].IndexOf("x");
|
||||||
temp.GERName = datas[j].Substring(xFound + 1).Trim();
|
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)
|
if(internalCounter == 1)
|
||||||
{
|
{
|
||||||
@@ -83,7 +83,6 @@ public static class Helper
|
|||||||
}
|
}
|
||||||
if(internalCounter == 2)
|
if(internalCounter == 2)
|
||||||
{
|
{
|
||||||
var d = datas[j].IndexOf("#");
|
|
||||||
if (datas[j].IndexOf("#") > -1)
|
if (datas[j].IndexOf("#") > -1)
|
||||||
{
|
{
|
||||||
temp.CardNumber = datas[j];
|
temp.CardNumber = datas[j];
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user