From cda2410f9c29f2fadc16e9de38ccae95b75a89dd Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期三, 09 六月 2021 10:51:13 +0800 Subject: [PATCH] 1 --- HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs | 11 ++++------- 1 files changed, 4 insertions(+), 7 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs index 65bb8a2..ae546df 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/MainView.cs @@ -359,7 +359,8 @@ //2-鍔熻兘鍥炬爣 for (int i = 0; i < logic.input.Count; i++) { - + if (logic.input[i] == null) + continue; var int1 = int.Parse(logic.input[i].condition_type); int iconInt = 0; switch (int1) @@ -510,7 +511,7 @@ } } /// <summary> - /// 鍒ゆ柇缃戝叧绫诲瀷 + /// 鍒ゆ柇缃戝叧绫诲瀷(0:bus缃戝叧锛�1:A鍗忚缃戝叧) /// </summary> /// <returns></returns> public static bool IsGatewayType @@ -521,11 +522,7 @@ { return true; } - else - { - return false; - - } + return false; } } } -- Gitblit v1.8.0