From f4b178e64fd43262872fe9d443aa9da6048ceaac Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期五, 20 十一月 2020 17:57:29 +0800 Subject: [PATCH] Merge branch 'CJL' --- 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