From 5eeafe3af80bfd88306bd8ad9e76c8f4b51ca35f Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期四, 17 十二月 2020 14:16:20 +0800
Subject: [PATCH] 增加本地发送的重发机制

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
index 2b375d9..101d71f 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
@@ -52,6 +52,7 @@
                     addLogic.Show();
                     MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
                 };
+                //寮�鍏冲浘鏍囩殑鐐瑰嚮浜嬩欢
                 logicView.btnSwitchIcon.MouseUpEventHandler += (sender1, e1) =>
                 {
                     logicView.btnSwitchIcon.IsSelected = !logicView.btnSwitchIcon.IsSelected;
@@ -59,16 +60,25 @@
                     {
                         logicView.btnSwitchIcon.IsSelected = true;
                         currLogic.enable = "true";
-
-
                     }
                     else
                     {
                         logicView.btnSwitchIcon.IsSelected = false;
                         currLogic.enable = "false";
                     }
-                    Send.switchLogic(currLogic);
+                    //Send.switchLogic(currLogic);
+                    new System.Threading.Thread(() =>
+                    {
+                        try
+                        {
+                            //閫昏緫浣胯兘鐨勫懡浠�
+                            Send.switchLogic(currLogic);
 
+                        }
+                        catch { }
+                       
+                    })
+                    { IsBackground = true }.Start();
                 };
                 GetSelectIcon(logicView.frameLayout, currLogic);
                 //if (i==0)闄嶅簭鎺掑垪
@@ -102,7 +112,7 @@
                 {
                     Y = btnTipNot.Bottom,
                     Height = Application.GetRealWidth(100),
-                    TextID = StringId.TipNotOpen,
+                    TextID = StringId.ContentIsEmpty,
                     TextAlignment = TextAlignment.Center,
                     TextColor = CSS.CSS_Color.TextualColor,
                     TextSize = CSS.CSS_FontSize.PromptFontSize_FirstLevel,
@@ -199,7 +209,6 @@
             }
             return weekTextName.TrimEnd(',');
         }
-
 
         /// <summary>
         /// 鑾峰彇姣忔湀鐨勫瓧绗︿覆

--
Gitblit v1.8.0