From 220f43bdfb1e1d1544c892697304f99e967103a4 Mon Sep 17 00:00:00 2001 From: patrick.xu <patrick.xu@broconcentric.com> Date: 星期一, 22 十一月 2021 08:42:14 +0800 Subject: [PATCH] 1. 添加了扫码键盘事件的日志记录,版本号升级到1.0.4.0 --- CommonUtil.cs | 37 +++++++++++++++++++++---------------- 1 files changed, 21 insertions(+), 16 deletions(-) diff --git a/CommonUtil.cs b/CommonUtil.cs index 0e7b920..b9ed9bd 100644 --- a/CommonUtil.cs +++ b/CommonUtil.cs @@ -6,6 +6,7 @@ using System.Runtime.InteropServices; using System.Windows; using System.Windows.Forms; +using System.Threading; namespace M423project { @@ -46,22 +47,22 @@ private static object lockObj = new object(); private static object logObj = new object(); - private static bool uploadDataEnable = true; + //private static bool uploadDataEnable = true; - public static bool UploadDataEnable - { - get - { - lock (lockObj) { return uploadDataEnable; } - } - set - { - lock (lockObj) - { - uploadDataEnable = value; - } - } - } + //public static bool UploadDataEnable + //{ + // get + // { + // lock (lockObj) { return uploadDataEnable; } + // } + // set + // { + // lock (lockObj) + // { + // uploadDataEnable = value; + // } + // } + //} private static DetectionOption detectionOption = DetectionOption.doProduct; @@ -118,7 +119,11 @@ /// 涓荤獥浣撳紩鐢� /// </summary> public static MainForm mainForm { get; set; } - + + public static ManualResetEvent UploadDoneHandle = new ManualResetEvent(true); + public static object UploadDataLock = new object(); + public static bool UploadDataEnable = true; + static CommonUtil() { CurrentDir = Directory.GetCurrentDirectory(); -- Gitblit v1.8.0