From a40db3104e6d5d8a5d146ad808e5bb1ad6c8cb07 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 20 十一月 2020 17:53:22 +0800
Subject: [PATCH] 20201120
---
HDL_ON/UI/MainPage.cs | 17 ++++++++++++++---
1 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/HDL_ON/UI/MainPage.cs b/HDL_ON/UI/MainPage.cs
index 5f3ef66..e33ac4c 100644
--- a/HDL_ON/UI/MainPage.cs
+++ b/HDL_ON/UI/MainPage.cs
@@ -80,7 +80,7 @@
}
else
{
- //UdpSocket._BusSocket.Start();
+ //UdpSocket._BusSocket.Start();
//if (Entity.DB_ResidenceData.residenceData.GatewayType == 1)
//{
// BusSocket.Start();
@@ -89,8 +89,8 @@
//}
//else
//{
- // BusSocket.Start();
- // CommonPage.InitReceiveEvent();
+ //BusSocket.Start();
+ //CommonPage.InitReceiveEvent();
//}
new System.Threading.Thread(() =>
@@ -185,5 +185,16 @@
#endif
}
+ /// <summary>
+ /// 寮圭獥鎻愮ず
+ /// </summary>
+ /// <param name="mes"></param>
+ public static void ShowAlertOnMainThread(string mes)
+ {
+ Application.RunOnMainThread(() => {
+ new Alert("", mes, Language.StringByID(StringId.Close)).Show();
+ });
+ }
+
}
}
--
Gitblit v1.8.0