New file |
| | |
| | | using System;
|
| | | using System.Collections.Generic;
|
| | | using System.Text;
|
| | | using ZigBee.Device;
|
| | |
|
| | | namespace Shared.Phone.MainPage.Controls
|
| | | {
|
| | | /// <summary>
|
| | | /// 门锁卡片控件
|
| | | /// </summary>
|
| | | public class DeviceDoorLockCardControl : DeviceCardCommon
|
| | | {
|
| | | #region ■ 初始化_____________________________
|
| | |
|
| | | /// <summary>
|
| | | /// 初始化控件
|
| | | /// </summary>
|
| | | /// <param name="i_device"></param>
|
| | | public override void InitControl(CommonDevice i_device)
|
| | | {
|
| | | base.InitControl(i_device);
|
| | |
|
| | | //添加跳转深度卡片信息事件
|
| | | this.AddDetailInfoEvent(i_device);
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 深度卡片信息_______________________
|
| | |
|
| | | /// <summary>
|
| | | /// 添加跳转深度卡片信息事件
|
| | | /// </summary>
|
| | | private void AddDetailInfoEvent(CommonDevice i_device)
|
| | | {
|
| | | //深度卡片信息
|
| | | this.ButtonClickEvent += (sender, e) =>
|
| | | {
|
| | | Common.CommonPage.Instance.IsDrawerLockMode = true;
|
| | |
|
| | | var userDoorLockPage = new UserCenter.DoorLock.UserDoorLockPage(UserCenter.HdlRoomLogic.Current.CurrentRoom, i_device);
|
| | | userDoorLockPage.IsDrawerLockMode = true;
|
| | | UserView.HomePage.Instance.AddChidren(userDoorLockPage);
|
| | | UserView.HomePage.Instance.PageIndex += 1;
|
| | | userDoorLockPage.Show();
|
| | | };
|
| | | }
|
| | |
|
| | | #endregion
|
| | | }
|
| | | }
|