Skip to content

Commit c747917

Browse files
authored
Update Program.cs
1 parent d7e51c5 commit c747917

File tree

1 file changed

+21
-21
lines changed

1 file changed

+21
-21
lines changed

samples/ImageDecoding/Program.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
using System;
2-
using System.Drawing;
3-
using System.IO;
4-
using Dynamsoft;
5-
using Dynamsoft.DBR;
6-
using System.Windows.Forms;
7-
using Dynamsoft.Core;
1+
using System;
2+
using System.Drawing;
3+
using System.IO;
4+
using Dynamsoft;
5+
using Dynamsoft.DBR;
6+
using System.Windows.Forms;
7+
using Dynamsoft.Core;
88

99

1010
namespace ImageDecoding
@@ -15,20 +15,20 @@ static void Main(string[] args)
1515
{
1616
try
1717
{
18-
DMDLSConnectionParameters connectionInfo = BarcodeReader.InitDLSConnectionParameters();
19-
connectionInfo.OrganizationID = "200001";
20-
EnumErrorCode errorCode = BarcodeReader.InitLicenseFromDLS(connectionInfo, out string errorMsg);
21-
if (errorCode != EnumErrorCode.DBR_SUCCESS)
22-
{
23-
Console.WriteLine(errorMsg);
18+
DMDLSConnectionParameters connectionInfo = BarcodeReader.InitDLSConnectionParameters();
19+
connectionInfo.OrganizationID = "200001";
20+
EnumErrorCode errorCode = BarcodeReader.InitLicenseFromDLS(connectionInfo, out string errorMsg);
21+
if (errorCode != EnumErrorCode.DBR_SUCCESS)
22+
{
23+
Console.WriteLine(errorMsg);
2424
}
2525

26-
BarcodeReader dbr = new BarcodeReader();
27-
28-
29-
string filePath = "../../../../images/AllSupportedBarcodeTypes.png";
30-
TextResult[] results = null;
31-
26+
BarcodeReader dbr = new BarcodeReader();
27+
28+
29+
string filePath = "../../../../images/AllSupportedBarcodeTypes.png";
30+
TextResult[] results = null;
31+
3232
PublicRuntimeSettings settings = dbr.GetRuntimeSettings();
3333

3434
ImageCore ImageCore1 = new ImageCore();
@@ -43,7 +43,7 @@ static void Main(string[] args)
4343
foreach (TextResult result in results)
4444
{
4545
string barcodeFormat = result.BarcodeFormat == 0 ? result.BarcodeFormatString_2 : result.BarcodeFormatString;
46-
string message = "Barcode" + i + ":" + barcodeFormat + result.BarcodeText;
46+
string message = "Barcode" + i + ":" + barcodeFormat + "," + result.BarcodeText;
4747
Console.WriteLine(message);
4848
i++;
4949
}
@@ -57,7 +57,7 @@ static void Main(string[] args)
5757
{
5858
Console.WriteLine(exp.Message);
5959
}
60-
Console.WriteLine("Press any key to quit...");
60+
Console.WriteLine("Press any key to quit...");
6161
Console.ReadKey();
6262
}
6363
}

0 commit comments

Comments
 (0)