From 54164f7cce330e532d4ce9b61f2999928afbcb07 Mon Sep 17 00:00:00 2001 From: mfzpeyo Date: Fri, 9 Jan 2009 03:15:02 +0000 Subject: [PATCH] git-svn-id: https://zxing.googlecode.com/svn/trunk@818 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- csharp/MultiFormatReader.cs | 13 +++++++------ csharp/oned/MultiFormatOneDReader.cs | 1 + csharp/zxing.csproj | 3 --- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/csharp/MultiFormatReader.cs b/csharp/MultiFormatReader.cs index 0fed7777f..9c0f09ca1 100755 --- a/csharp/MultiFormatReader.cs +++ b/csharp/MultiFormatReader.cs @@ -14,7 +14,8 @@ using System; using System.Collections; -using com.google.zxing.qrcode; +using com.google.zxing.qrcode; +using com.google.zxing.oned; namespace com.google.zxing { @@ -106,7 +107,7 @@ namespace com.google.zxing if (addOneDReader && !tryHarder) { - //readers.Add(new MultiFormatOneDReader(hints)); + readers.Add(new MultiFormatOneDReader(hints)); } if (possibleFormats.Contains(BarcodeFormat.QR_CODE)) @@ -114,13 +115,13 @@ namespace com.google.zxing readers.Add(new QRCodeReader()); } // TODO re-enable once Data Matrix is ready - //if (possibleFormats.contains(BarcodeFormat.DATAMATRIX)) { - // readers.addElement(new DataMatrixReader()); - //} + if (possibleFormats.Contains(BarcodeFormat.DATAMATRIX)) { + //readers.Add(new DataMatrixReader()); + } // At end in "try harder" mode if (addOneDReader && tryHarder) { - //readers.Add(new MultiFormatOneDReader(hints)); + readers.Add(new MultiFormatOneDReader(hints)); } } diff --git a/csharp/oned/MultiFormatOneDReader.cs b/csharp/oned/MultiFormatOneDReader.cs index 9bb314b9b..b42143596 100755 --- a/csharp/oned/MultiFormatOneDReader.cs +++ b/csharp/oned/MultiFormatOneDReader.cs @@ -23,6 +23,7 @@ namespace com.google.zxing.oned public sealed class MultiFormatOneDReader : AbstractOneDReader { private System.Collections.ArrayList readers; + public MultiFormatOneDReader(System.Collections.Hashtable hints) { System.Collections.ArrayList possibleFormats = hints == null ? null : (System.Collections.ArrayList) hints[DecodeHintType.POSSIBLE_FORMATS]; diff --git a/csharp/zxing.csproj b/csharp/zxing.csproj index 364b718b6..3bebda4c6 100755 --- a/csharp/zxing.csproj +++ b/csharp/zxing.csproj @@ -121,9 +121,6 @@ - - -