old mode 100755
new mode 100644
| | |
| | | { |
| | | public class UserDoorLockPage : DoorLockCommonLayout, ZigBee.Common.IStatus |
| | | { |
| | | public UserDoorLockPage(ZigBee.Device.DoorLock doorLock, Shared.Phone.UserCenter.MemberInfoRes accountObj) |
| | | |
| | | public UserDoorLockPage(Shared.Common.Room room ,DeviceUI doorLock) |
| | | { |
| | | this.doorLock = doorLock; |
| | | //currentRoom = room;Shared.Common.Room room, |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor; |
| | | this.doorLock = doorLock.CommonDevice as ZigBee.Device.DoorLock; |
| | | currentRoom = room; |
| | | deviceUI = doorLock; |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor; |
| | | ZigBee.Device.ZbGateway.StatusList.Add(this); |
| | | } |
| | | |
| | |
| | | ZigBee.Device.DoorLock doorLock; |
| | | FrameLayout bottomFrameLayout; |
| | | Shared.Common.Room currentRoom; |
| | | DeviceUI deviceUI; |
| | | Action action; |
| | | #endregion |
| | | |
| | |
| | | btnCollect.IsSelected = !btnCollect.IsSelected; |
| | | if (btnCollect.IsSelected) |
| | | { |
| | | // Shared.Common.Room.CurrentRoom.GetLoveRoom().DeleteDevice(doorLock.FileName); //取消收藏 |
| | | Shared.Common.Room.CurrentRoom.GetLoveRoom().DeleteDevice(deviceUI.FileName); //取消收藏 |
| | | } |
| | | else |
| | | { |
| | | //Shared.Common.Room.CurrentRoom.GetLoveRoom().AddDevice(doorLock.FileName);//收藏 |
| | | Shared.Common.Room.CurrentRoom.GetLoveRoom().AddDevice(deviceUI.FileName);//收藏 |
| | | } |
| | | }; |
| | | |
| | |
| | | Height = Application.GetRealHeight(49), |
| | | X = Application.GetRealWidth(150), |
| | | Y = Application.GetRealHeight(46), |
| | | // Text = currentRoom.Name, |
| | | Text = currentRoom.Name, |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMWhite, |
| | | TextSize = 12, |
| | | TextAlignment = TextAlignment.CenterLeft, |