| | |
| | | //它有个最小的X轴 |
| | | batteryControl.X = Application.GetRealWidth(104) > base.btnRoomName.Right ? |
| | | Application.GetRealWidth(104) : base.btnRoomName.Right + Application.GetRealWidth(4); |
| | | FrameWhiteCentet1.AddChidren(batteryControl); |
| | | //FrameWhiteCentet1.AddChidren(batteryControl); |
| | | if (batteryControl.Height > base.btnRoomName.Height) |
| | | { |
| | | //一个是25,一个是21,弄不准到底谁更高,因为计算方法不一样 |
| | |
| | | btnOnlineIcon.X = batteryControl.Right + Application.GetRealWidth(12); |
| | | btnOnlineIcon.Y = batteryControl.Y; |
| | | btnOnlineIcon.UnSelectedImagePath = "FunctionIcon/DoorLock/Connect.png"; |
| | | FrameWhiteCentet1.AddChidren(btnOnlineIcon); |
| | | //FrameWhiteCentet1.AddChidren(btnOnlineIcon); |
| | | //在线文本 |
| | | this.btnOnlineView = new NormalViewControl(Application.GetRealWidth(100), btnOnlineIcon.Height, false); |
| | | btnOnlineView.X = btnOnlineIcon.Right + Application.GetRealWidth(4); |
| | |
| | | btnOnlineView.TextSize = CSS_FontSize.PromptFontSize_SecondaryLevel; |
| | | btnOnlineView.TextColor = CSS_Color.PromptingColor1; |
| | | btnOnlineView.TextID = StringId.Connected; |
| | | FrameWhiteCentet1.AddChidren(btnOnlineView); |
| | | //FrameWhiteCentet1.AddChidren(btnOnlineView); |
| | | //右上角配置结束的事件 |
| | | base.SettionFinishEvent += () => |
| | | { |
| | |
| | | this.picLockControl = new PicViewControl(256, 260); |
| | | picLockControl.Y = Application.GetRealHeight(129); |
| | | picLockControl.Gravity = Gravity.CenterHorizontal; |
| | | picLockControl.UnSelectedImagePath = "FunctionIcon/DoorLock/LockPictrue1.png"; |
| | | picLockControl.UnSelectedImagePath = "FunctionIcon/DoorLock/LockPictrue1.png"; |
| | | FrameWhiteCentet1.AddChidren(picLockControl); |
| | | picLockControl.ButtonClickEvent += (sender, e) => |
| | | { |
| | |
| | | return; |
| | | } |
| | | if (UserInfo.Current.VerOpenDoorPw || string.IsNullOrEmpty(UserInfo.Current.doorPasswordString)) |
| | | { |
| | | { |
| | | var page = new DoorLockUnlockPage(this.device); |
| | | MainPage.BasePageView.AddChidren(page); |
| | | page.LoadView(); |