From b3c9ada9a3e758c9f67abb9fc0a6a2764c7ea03d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 13 十月 2022 11:19:07 +0800
Subject: [PATCH] 光伏更新主页图标

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

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
index 1a14583..a28c458 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
+++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs
@@ -67,13 +67,12 @@
                         logicView.btnSwitchIcon.IsSelected = false;
                         currLogic.enable = "false";
                     }
-                    //Send.switchLogic(currLogic);
                     new System.Threading.Thread(() =>
                     {
                         try
                         {
                             //閫昏緫浣胯兘鐨勫懡浠�
-                            Send.Current.SwitchLogic(currLogic);
+                            Send.Current.EnableLogic(currLogic);
 
                         }
                         catch { }
@@ -259,9 +258,9 @@
         /// <summary>
         /// 鑾峰彇閫昏緫鍒楄〃
         /// </summary>
-        public static void GetLogicList()
+        public static void GetLogicList(bool needRefresh = false)//澧炲姞寮哄埗鍒锋柊
         {
-            if (Logic.LogicList.Count != 0)
+            if (Logic.LogicList.Count != 0 || !needRefresh)
             {
                 //鑷姩鍖栧垪琛ㄤ负0鎵嶅幓鑾峰彇鑷姩鍖栧垪琛紱
                 return;

--
Gitblit v1.8.0