From 94e4e5b9fd3da964c44b7b14227d6fe2bbb426d7 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期四, 02 四月 2020 13:56:39 +0800
Subject: [PATCH] 2020-04-02-2

---
 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