From 3793a9a38ac6c4c4111c2bba3a35a71c30601e82 Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 13 四月 2020 19:38:24 +0800 Subject: [PATCH] 上传个东西 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs index 4be90e7..91d1c6f 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelFangyueFreshAirTargetForm.cs @@ -202,10 +202,18 @@ DeviceSimpleSelectControl oldSelectContr = null; var listDevice = this.dicShowDevice[roomId]; //妫�鏌ョ鍚堢殑璁惧 - - for (int i = 0; i < listDevice.Count; i++) + List<CommonDevice> listSupportDevice = new List<CommonDevice> { }; + foreach (var dev in listDevice) { - string mainKey = Common.LocalDevice.Current.GetDeviceMainKeys(listDevice[i]); + if (dev.Type == DeviceType.FreshAir) + { + listSupportDevice.Add(dev); + } + } + + for (int i = 0; i < listSupportDevice.Count; i++) + { + string mainKey = Common.LocalDevice.Current.GetDeviceMainKeys(listSupportDevice[i]); var contr = new DeviceSimpleSelectControl(listDevice[i], false, this.listView.rowSpace / 2); listView.AddChidren(contr); contr.InitControl(); -- Gitblit v1.8.0