| | |
| | | /// 列表控件 |
| | | /// </summary> |
| | | private VerticalListControl listView = null; |
| | | /// <summary> |
| | | /// 删除设备后需要更新界面的回调 |
| | | /// </summary> |
| | | public Action action; |
| | | |
| | | |
| | | #endregion |
| | | |
| | | #region ■ 初始化_____________________________ |
| | | |
| | | public VideoDoorLockListPage(Action action) { |
| | | this.action = action; |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 画面显示(底层会固定调用此方法,借以完成画面创建) |
| | |
| | | this.listDevice.AddRange(i_listDevice); |
| | | //智能门锁 |
| | | base.SetTitleText(Language.StringByID(StringId.shipinmensuo)); |
| | | //初始化头部历史记录控件 |
| | | //this.InitTopHistoryControl(); |
| | | |
| | | //初始化中部信息 |
| | | this.InitMiddleFrame(); |
| | |
| | | { |
| | | var form = new VideoDoorLockPage(i_device, btnName, btnRoom, CommonMethod.Comerom.function,()=> { |
| | | this.CloseForm(); |
| | | this.action?.Invoke(); |
| | | }); |
| | | MainPage.BasePageView.AddChidren(form); |
| | | MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | form.Show(); |
| | | |
| | | //var form = new VideoDoorLockPage(); |
| | | //form.AddForm(i_device, new Button(), btnName, btnRoom); |
| | | }; |
| | | |
| | | //底部再加个间距 |
| | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | public void SkipViewPage(CommonMethod.Comerom comerom) { |
| | | //var form = new VideoDoorLockPage(i_device, btnName, btnRoom, Comerom.function); |
| | | //MainPage.BasePageView.AddChidren(form); |
| | | //MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; |
| | | //form.Show(); |
| | | } |
| | | |
| | | #region ■ 初始化头部历史记录图标_____________ |
| | | |
| | | /// <summary> |
| | | /// 初始化头部历史记录控件 |
| | | /// </summary> |
| | | private void InitTopHistoryControl() |
| | | { |
| | | //历史记录图标 |
| | | var btnIcon = new IconViewControl(28); |
| | | btnIcon.X = Application.GetRealWidth(337); |
| | | btnIcon.Y = Application.GetRealHeight(9); |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/DoorLock/History.png"; |
| | | topFrameLayout.AddChidren(btnIcon); |
| | | btnIcon.ButtonClickEvent += (sender, e) => |
| | | { |
| | | var form = new DoorLockHistoryInfoPage(); |
| | | form.AddForm(this.listDevice); |
| | | }; |
| | | } |
| | | |
| | | #endregion |
| | | |
| | | #region ■ 设备状态推送_______________________ |
| | | |
| | |
| | | |
| | | #endregion |
| | | |
| | | #region ■ 一般方法___________________________ |
| | | |
| | | #endregion |
| | | |
| | | } |
| | | } |