gxc
2019-10-31 1a2061079e97a738ec7b8959bfd9a6e6c6997403
ZigbeeApp/Shared/Phone/Device/Light/DimmableLightControl.cs
old mode 100755 new mode 100644
@@ -531,12 +531,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;
            }
        }