| | |
| | | btnFuncSetFrameLayout.AddChidren(btnFuncSet); |
| | | btnFuncSet.MouseDownEventHandler += (sender, e) => |
| | | { |
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1) |
| | | var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSetting.Show(); |
| | | functionSetting.devicNameAction += (deviceRename) => |
| | | { |
| | | var functionSetting = new Shared.Phone.UserCenter.DoorLock.FunctionSetting(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSetting); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSetting.Show(); |
| | | functionSetting.devicNameAction += (deviceRename) => |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | //改房间 |
| | | Shared.Common.Room.CurrentRoom.ChangedRoom(deviceUI.CommonDevice, currentRoom.Id); |
| | | deviceUI.CommonDevice.ReSave(); |
| | | } |
| | | }; |
| | | } |
| | | else |
| | | { |
| | | var functionSettingSub = new Shared.Phone.UserCenter.DoorLock.FunctionSettingSub(doorLock); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(functionSettingSub); |
| | | Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; |
| | | functionSettingSub.Show(); |
| | | functionSettingSub.devicNameAction += (deviceRename) => |
| | | { |
| | | if (!string.IsNullOrEmpty(deviceRename)) |
| | | { |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | } |
| | | }; |
| | | } |
| | | btnDoorLockTitle.Text = deviceRename; |
| | | //改房间 |
| | | Shared.Common.Room.CurrentRoom.ChangedRoom(deviceUI.CommonDevice, currentRoom.Id); |
| | | deviceUI.CommonDevice.ReSave(); |
| | | } |
| | | }; |
| | | }; |
| | | |
| | | btnShare.MouseDownEventHandler += (sender, e) => |
| | |
| | | Height = Application.GetRealHeight(60), |
| | | X = Application.GetRealWidth(372), |
| | | Y = Application.GetRealHeight(46), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack , |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMBlack, |
| | | TextSize = 15, |
| | | TextAlignment = TextAlignment.Center, |
| | | IsBold =true, |
| | | IsBold = true, |
| | | }; |
| | | midTopFrameLayout.AddChidren(btnDoorLockTitle); |
| | | //获取Mac名字 |