| | |
| | | /// 门锁状态 |
| | | /// </summary> |
| | | private Button btnDoorLockIcon; |
| | | Button btnDoorlockStatus; |
| | | /// <summary> |
| | | /// 实时视频 |
| | | /// </summary> |
| | |
| | | |
| | | this.CalculatedPosition();//重新计算宽度 |
| | | |
| | | Button btnDoorlockStatus; |
| | | btnDoorlockStatus = new Button() |
| | | { |
| | | Width = Application.GetRealWidth(200), |
| | |
| | | rtvFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/RTV.png"; |
| | | rtvFL.GetTextButton().TextID = StringId.shishishipin; |
| | | |
| | | |
| | | //临时密码 |
| | | pswFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | | whiteFl.AddChidren(pswFL); |
| | |
| | | pswFL.AddTextButtonView(); |
| | | pswFL.GetImageButton().UnSelectedImagePath = "FunctionIcon/DoorLock/OneOpenLock.png"; |
| | | pswFL.GetTextButton().TextID = StringId.linshimima1; |
| | | if (device.omodel.Contains("CS-DL30F-V100")) |
| | | { |
| | | rtvFL.Visible = rtvFL.Enable = false; |
| | | pswFL.X = Application.GetRealWidth(26); |
| | | } |
| | | |
| | | //历史记录 |
| | | recordFL = new CustomFrameLayout(CustomFrameLayout.widthFrameLayout, CustomFrameLayout.heightFrameLayout); |
| | |
| | | CommonMethod.Current.SkipRTVActivity(this.device.sid, this.device.deviceId, this.device.spk, false); |
| | | |
| | | }); |
| | | var lastClickTime = DateTime.MinValue; |
| | | //临时密码 |
| | | this.pswFL.SetClickListener((fl, btnStateImage, btnStateText) => |
| | | { |
| | | if (lastClickTime.AddSeconds(3) > DateTime.Now) |
| | | { |
| | | return; |
| | | } |
| | | lastClickTime = DateTime.Now; |
| | | CommonMethod.Current.SkipPSWActivity(this.device.deviceId); |
| | | }); |
| | | |
| | | //历史记录 |
| | | this.recordFL.SetClickListener((fl, btnStateImage, btnStateText) => |
| | | { |
| | | if (lastClickTime.AddSeconds(3) > DateTime.Now) |
| | | { |
| | | return; |
| | | } |
| | | lastClickTime = DateTime.Now; |
| | | |
| | | //VideoDoorlockHistoryPage historyPage = new VideoDoorlockHistoryPage(device); |
| | | //MainPage.BasePageView.AddChidren(historyPage); |
| | | //historyPage.LoadPage(); |
| | |
| | | //this.cellDiyArcSeekBar.Progress = i; |
| | | //更新电量值 |
| | | this.btnCell.Text = cellInfo.remain + "%"; |
| | | this.btnDoorLockIcon.IsSelected = videoDoorLockInfo.doorStatus == "open"; |
| | | if(videoDoorLockInfo.doorStatus == "open") |
| | | { |
| | | this.btnDoorLockIcon.IsSelected = true; |
| | | this.btnDoorlockStatus.TextID = StringId.DoorlockOpen; |
| | | this.btnDoorlockStatus.TextColor = CSS_Color.WarningColor; |
| | | } |
| | | else |
| | | { |
| | | this.btnDoorLockIcon.IsSelected = false; |
| | | this.btnDoorlockStatus.TextID = StringId.DoorlockClose; |
| | | this.btnDoorlockStatus.TextColor = 0xFF000000; |
| | | } |
| | | }); |
| | | } |
| | | catch { } |
| | |
| | | return false; |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |
| | | |
| | | |
| | | } |