From 23ee4f8c373f9abecf079ef9d4297d8b6cd8d5e6 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 16 十二月 2020 15:16:00 +0800
Subject: [PATCH] Merge branch 'NewFilePath'

---
 HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs |   34 ++++++++++++++++++++++------------
 1 files changed, 22 insertions(+), 12 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
index cf31198..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,
@@ -165,32 +175,31 @@
         public static string GetWeekString(List<string> weekList)
         {
             string weekTextName = "";
-
-            if (weekList.Contains("0"))
+            if (weekList.Contains("1"))
             {
                 weekTextName += Language.StringByID(StringId.monday) + ",";
             }
-            if (weekList.Contains("1"))
+            if (weekList.Contains("2"))
             {
                 weekTextName += Language.StringByID(StringId.tuesday) + ",";
             }
-            if (weekList.Contains("2"))
+            if (weekList.Contains("3"))
             {
                 weekTextName += Language.StringByID(StringId.wednesday) + ",";
             }
-            if (weekList.Contains("3"))
+            if (weekList.Contains("4"))
             {
                 weekTextName += Language.StringByID(StringId.thursday) + ",";
             }
-            if (weekList.Contains("4"))
+            if (weekList.Contains("5"))
             {
                 weekTextName += Language.StringByID(StringId.friday) + ",";
             }
-            if (weekList.Contains("5"))
+            if (weekList.Contains("6"))
             {
                 weekTextName += Language.StringByID(StringId.saturday) + ",";
             }
-            if (weekList.Contains("6"))
+            if (weekList.Contains("0"))
             {
                 weekTextName += Language.StringByID(StringId.sunday) + ",";
             }
@@ -200,6 +209,7 @@
             }
             return weekTextName.TrimEnd(',');
         }
+
         /// <summary>
         /// 鑾峰彇姣忔湀鐨勫瓧绗︿覆
         /// </summary>

--
Gitblit v1.8.0