From e6504e6155818b1e7f35dd4d74d13e02359ceb7e Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期五, 25 十月 2019 16:29:02 +0800
Subject: [PATCH] 2019-10-25-1

---
 ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs b/ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs
index 3e280d9..54e4f18 100755
--- a/ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Light/LightControl.cs
@@ -475,12 +475,12 @@
             //collection
             if ((sender as Button).IsSelected)
             {
-                Shared.Common.Room.GetLoveRoom().DeleteDevice(device.FileName);
+                Shared.Common.Room.CurrentRoom.GetLoveRoom().DeleteDevice(device.FileName);
                 (sender as Button).IsSelected = false;
             }
             else
             {
-                Shared.Common.Room.GetLoveRoom().AddDevice(device.FileName);
+                Shared.Common.Room.CurrentRoom.GetLoveRoom().AddDevice(device.FileName);
                 (sender as Button).IsSelected = true;
             }
         }

--
Gitblit v1.8.0