From 0aeffdc509f6c25998bf7c54c64118ea62608d9d Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期三, 23 十二月 2020 17:48:26 +0800 Subject: [PATCH] 2020-12-23-5 --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs index 3e7d9f5..d786536 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs @@ -179,8 +179,9 @@ { List<HDL_ON.Entity.Function> deviceLists = new List<Entity.Function>(); List<HDL_ON.Entity.Function> lists = GetGatewayDeviceList(); - foreach (var dev in lists) + for (int i = 0; i < lists.Count; i++) { + var dev = lists[i]; if (dev.roomIds.Find((id) => id == room.uid) != null) { deviceLists.Add(dev); @@ -244,8 +245,6 @@ { string roomName = ""; List<HDL_ON.Entity.Room> roomLists = GetGatewayRoomList(); - - for (int i = 0; i < device.roomIds.Count; i++) { var dev = device.roomIds[i]; -- Gitblit v1.8.0