xm
2020-05-07 c1de48884fa145a16a0f8bcee93274dcfaa0ff82
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
using System;
using System.Collections.Generic;
using System.Text;
using ZigBee.Device;
 
namespace Shared.Phone.Category.Controls
{
    /// <summary>
    /// 分类界面的门锁设备行控件
    /// </summary>
    public class DeviceDoorLockRowControl : DeviceRowCommon
    {
        #region ■ 初始化_____________________________
 
        /// <summary>
        /// 分类界面的门锁设备行控件
        /// </summary>
        public DeviceDoorLockRowControl()
        {
            //门锁暂时没有状态功能
            this.hadStatuFunction = false;
        }
 
        /// <summary>
        /// 初始化控件
        /// </summary>
        /// <param name="i_device"></param>
        public override void InitControl(CommonDevice i_device)
        {
            base.InitControl(i_device);
 
            //如果住宅为虚拟住宅,此功能无效
            if (Common.Config.Instance.Home.IsVirtually == false)
            {
                //添加跳转深度卡片信息事件
                this.AddDetailInfoEvent(i_device);
            }
        }
 
        #endregion
 
        #region ■ 深度卡片信息_______________________
 
        /// <summary>
        /// 添加跳转深度卡片信息事件
        /// </summary>
        private void AddDetailInfoEvent(CommonDevice i_device)
        {
            //深度卡片信息
            this.frameTable.ButtonClickEvent += (sender, e) =>
            {
                var userDoorLockPage = new UserCenter.DoorLock.UserDoorLockPage(UserCenter.HdlRoomLogic.Current.CurrentRoom, i_device);
                UserView.HomePage.Instance.AddChidren(userDoorLockPage);
                UserView.HomePage.Instance.PageIndex += 1;
                userDoorLockPage.Show();
            };
        }
 
        #endregion
 
        #region ■ 检测设备打开状态___________________
 
        #endregion
 
        #region ■ 发送获取状态命令___________________
 
        #endregion
    }
}