From e7a71b8318fa26b8a85eac86e4c0a129f453d44f Mon Sep 17 00:00:00 2001 From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local> Date: 星期三, 08 一月 2020 17:54:16 +0800 Subject: [PATCH] 2019.1.8 --- ZigbeeApp/Shared/Common/Room.cs | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/ZigbeeApp/Shared/Common/Room.cs b/ZigbeeApp/Shared/Common/Room.cs index 58819f9..df0c48c 100644 --- a/ZigbeeApp/Shared/Common/Room.cs +++ b/ZigbeeApp/Shared/Common/Room.cs @@ -337,13 +337,13 @@ } Config.Instance.Home.InitFloor(); - RefreshRoomListView(); + CurrentRoom.RefreshRoomListView(); } /// <summary> /// 鍒锋柊鎴块棿瑙嗗浘鍒楄〃 /// </summary> - public static void RefreshRoomListView() + public void RefreshRoomListView() { Application.RunOnMainThread(() => { @@ -494,6 +494,9 @@ Global.DeleteFilebyHomeId(roomFilePath); Lists.Remove(room); HdlAutoBackupLogic.DeleteFile(roomFilePath); + + CurrentRoom.RefreshRoomListView(); + return true; } @@ -1229,15 +1232,10 @@ /// <summary> /// 鏄惁鏄敹钘忚澶� /// </summary> - /// <param name="room"></param> /// <param name="filePath"></param> /// <returns></returns> - public bool IsCollectInRoom(Room room,string filePath) + public bool IsCollectInRoom(string filePath) { - if(room.IsLove) - { - return true; - } if (GetLoveRoom().DeviceUIFilePathList.Find((obj) => obj == filePath) == null) { return false; -- Gitblit v1.8.0