From 23532fa8ad34c89b6d24b01eaef6475fd0aad898 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期三, 15 四月 2020 18:08:24 +0800
Subject: [PATCH] ???????

---
 ZigbeeApp/Shared/Common/SceneRoomUI.cs |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/SceneRoomUI.cs b/ZigbeeApp/Shared/Common/SceneRoomUI.cs
index f60ab23..b6e5613 100755
--- a/ZigbeeApp/Shared/Common/SceneRoomUI.cs
+++ b/ZigbeeApp/Shared/Common/SceneRoomUI.cs
@@ -26,15 +26,17 @@
         {
             //閫夋嫨鍦烘櫙--鎵�鏈夋埧闂寸殑鎵�鏈夊満鏅�
             AllSceneRoomUIList.Clear();
-            List<int> sceneIdList = new List<int> { };
-            foreach (var r in Shared.Common.Room.Lists)
+            List<int> sceneIdList = new List<int> { };
+            var listAllRoom = Phone.UserCenter.HdlRoomLogic.Current.GetAllListRooms();
+            foreach (var r in listAllRoom)
             {
-                if (r.SceneUIList.Count == 0)
+                if (r.ListSceneId.Count == 0)
                 {
                     continue;
                 }
-                foreach (var scene in r.SceneUIList)
+                foreach (var sceneId in r.ListSceneId)
                 {
+                    var scene = Phone.UserCenter.HdlSceneLogic.Current.GetSceneUIBySceneId(sceneId);
                     if (scene == null)
                     {
                         continue;

--
Gitblit v1.8.0