From aebcc0c0adc671dd1d7bc9fadab75a0de4a5fc9b Mon Sep 17 00:00:00 2001 From: Len Date: Thu, 1 Feb 2024 17:35:09 -0800 Subject: [PATCH] Update nuget packages Fix new capture name for decoded data boyscouting --- SingleEntryUsingCapture/App.config | 8 ++-- SingleEntryUsingCapture/Form1.Designer.cs | 2 +- SingleEntryUsingCapture/Form1.cs | 8 ++-- .../SingleEntryUsingCapture.csproj | 37 ++++++++++++++++--- SingleEntryUsingCapture/packages.config | 5 ++- 5 files changed, 43 insertions(+), 17 deletions(-) diff --git a/SingleEntryUsingCapture/App.config b/SingleEntryUsingCapture/App.config index 411083e..dcc85ee 100644 --- a/SingleEntryUsingCapture/App.config +++ b/SingleEntryUsingCapture/App.config @@ -1,13 +1,13 @@ - + - + - - + + diff --git a/SingleEntryUsingCapture/Form1.Designer.cs b/SingleEntryUsingCapture/Form1.Designer.cs index ed18f06..9d7f140 100644 --- a/SingleEntryUsingCapture/Form1.Designer.cs +++ b/SingleEntryUsingCapture/Form1.Designer.cs @@ -46,7 +46,7 @@ private void InitializeComponent() this.linkLabel1.Size = new System.Drawing.Size(135, 13); this.linkLabel1.TabIndex = 0; this.linkLabel1.TabStop = true; - this.linkLabel1.Text = "©2020 Socket Mobile, Inc."; + this.linkLabel1.Text = "©2024 Socket Mobile, Inc."; this.linkLabel1.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.linkLabel1_LinkClicked); // // labelVersion diff --git a/SingleEntryUsingCapture/Form1.cs b/SingleEntryUsingCapture/Form1.cs index 60fe416..2258705 100644 --- a/SingleEntryUsingCapture/Form1.cs +++ b/SingleEntryUsingCapture/Form1.cs @@ -4,7 +4,7 @@ /// and the decoded data into a list box /// /// Follow the steps from 1 to 4 -/// ©2016-2020 Socket Mobile, Inc. +/// ©2016-2024 Socket Mobile, Inc. using System; using System.Collections.Generic; @@ -20,12 +20,12 @@ namespace SingleEntryUsingCapture public partial class Form1 : Form { //2- Create a CaptureHelper member - CaptureHelper mCapture; + readonly CaptureHelper mCapture; public Form1() { InitializeComponent(); // 3- instantiate and configure CaptureHelper - mCapture = new CaptureHelper {ContextForEvents = WindowsFormsSynchronizationContext.Current}; + mCapture = new CaptureHelper {ContextForEvents = System.Threading.SynchronizationContext.Current }; mCapture.DeviceArrival += mCapture_DeviceArrival; mCapture.DeviceRemoval += mCapture_DeviceRemoval; mCapture.DecodedData += mCapture_DecodedData; @@ -95,7 +95,7 @@ private void mCapture_Terminate(object sender, CaptureHelper.TerminateArgs e) // received when a barcode has been decoded correctly void mCapture_DecodedData(object sender, CaptureHelper.DecodedDataArgs e) { - string infoAndDecodedData = $"{e.DecodedData.SymbologyName}: {e.DecodedData.DataToUTF8String}"; + string infoAndDecodedData = $"{e.DecodedData.DataSourceName}: {e.DecodedData.DataToUTF8String}"; listBoxDecodedData.Items.Add(infoAndDecodedData); } diff --git a/SingleEntryUsingCapture/SingleEntryUsingCapture.csproj b/SingleEntryUsingCapture/SingleEntryUsingCapture.csproj index c08b4f7..2057166 100644 --- a/SingleEntryUsingCapture/SingleEntryUsingCapture.csproj +++ b/SingleEntryUsingCapture/SingleEntryUsingCapture.csproj @@ -12,6 +12,21 @@ v4.8 512 + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 1 + 1.0.0.%2a + false + false + true AnyCPU @@ -36,12 +51,11 @@ barcodeAndScanner.ico - - ..\packages\Newtonsoft.Json.9.0.1\lib\net45\Newtonsoft.Json.dll - True + + ..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll - - ..\packages\SocketMobile.Capture.1.0.396.477\lib\net\SocketMobile.Capture.dll + + ..\packages\SocketMobile.Capture.1.4.17.146\lib\net48\SocketMobile.Capture.dll @@ -55,7 +69,6 @@ - Form @@ -94,6 +107,18 @@ + + + False + Microsoft .NET Framework 4.8 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + +