old mode 100755
new mode 100644
| | |
| | | Gravity = Gravity.CenterVertical, |
| | | TextAlignment =TextAlignment.CenterLeft, |
| | | TextColor=ZigbeeColor.Current.GXCTextColor, |
| | | Text=Config.Instance.Home.GetCurrentFloorName() |
| | | Text=Config.Instance.Home.GetCurrentFloorName |
| | | }; |
| | | topFrameLayout.AddChidren(floorBtn); |
| | | |
| | |
| | | { |
| | | 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; |
| | | } |
| | | if (Room.CurrentRoom.IsLove) |