From a06f3c32dc7143fde677a7aef28e73c9b094b0f7 Mon Sep 17 00:00:00 2001
From: lss <lsc@hdlchina.com.cn>
Date: 星期四, 26 五月 2022 16:44:00 +0800
Subject: [PATCH] Merge branch 'dev' into lss
---
HDL-ON_iOS/Scan.cs | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/HDL-ON_iOS/Scan.cs b/HDL-ON_iOS/Scan.cs
index 15d717d..9bc60b9 100644
--- a/HDL-ON_iOS/Scan.cs
+++ b/HDL-ON_iOS/Scan.cs
@@ -8,13 +8,27 @@
public class Scan
{
- public static string TipMsg = "";
+ public string TipMsg = "";
public Scan()
{
}
+ private static Scan ins;
+
+ public static Scan Ins
+ {
+ get
+ {
+ if (ins == null)
+ {
+ ins = new Scan();
+ }
+ return ins;
+ }
+
+ }
static MobileBarcodeScanner scanner;
- public static async void OpenScan(Action<string> action)
+ public async void OpenScan(Action<string> action)
{
string cancel = "鍙栨秷";
string flashText = "";
--
Gitblit v1.8.0