| | |
| | | this.currentKey = key; |
| | | } |
| | | |
| | | #region ◆ 变量申明__________________________ |
| | | ZigBee.Device.Panel currentKey;//当前按键对象 |
| | | VerticalFrameRefreshControl midVerticalRefreshLayout;//显示被绑定设备或场景的view |
| | | int currentClusterID = 0;//按键当前簇ID |
| | | #region 变量申明 |
| | | /// <summary> |
| | | /// 当前按键对象 |
| | | /// </summary> |
| | | ZigBee.Device.Panel currentKey; |
| | | /// <summary> |
| | | /// 显示被绑定设备或场景的view |
| | | /// </summary> |
| | | VerticalFrameRefreshControl midVerticalRefreshLayout; |
| | | /// <summary> |
| | | /// 按键当前簇ID |
| | | /// </summary> |
| | | int currentClusterID = 0; |
| | | /// <summary> |
| | | /// 空数据时的图片 |
| | | /// </summary> |
| | | Button entryStatusPic; |
| | | /// <summary> |
| | | /// 空数据的提示 |
| | | /// </summary> |
| | | Button btnPicTip; |
| | | Action<List<BindListResponseObj>> action;//按键绑定表通知 |
| | | Action<List<BindListResponseObj>> devicBindAction;//设备被绑定通知 |
| | | private System.Collections.Generic.List<CommonDevice> localDeviceList = new System.Collections.Generic.List<CommonDevice>();//本地设备列表 |
| | | private System.Collections.Generic.List<SceneUI> scList = new System.Collections.Generic.List<SceneUI> { };//本地场景列表 |
| | | FrameLayout blankFrameLayout;//空数据显示布局 |
| | | List<int> typeModeList;//动态获取按键支持的模式大类型 |
| | | public List<ScenesListInfo> gwScenesList = new List<ScenesListInfo>();//网关中的场景列表 |
| | | /// <summary> |
| | | /// 按键绑定表通知 |
| | | /// </summary> |
| | | Action<List<BindListResponseObj>> action; |
| | | /// <summary> |
| | | /// 设备被绑定通知 |
| | | /// </summary> |
| | | Action<List<BindListResponseObj>> devicBindAction; |
| | | /// <summary> |
| | | /// 本地设备列表 |
| | | /// </summary> |
| | | private System.Collections.Generic.List<CommonDevice> localDeviceList = new System.Collections.Generic.List<CommonDevice>(); |
| | | /// <summary> |
| | | /// 本地场景列表 |
| | | /// </summary> |
| | | private System.Collections.Generic.List<SceneUI> scList = new System.Collections.Generic.List<SceneUI> { }; |
| | | /// <summary> |
| | | /// 空数据显示布局 |
| | | /// </summary> |
| | | FrameLayout blankFrameLayout; |
| | | /// <summary> |
| | | /// 动态获取按键支持的模式大类型 |
| | | /// </summary> |
| | | List<int> typeModeList; |
| | | /// <summary> |
| | | /// 网关中的场景列表 |
| | | /// </summary> |
| | | public List<ScenesListInfo> gwScenesList = new List<ScenesListInfo>(); |
| | | /// <summary> |
| | | /// 是否支持读取 |
| | | /// </summary> |
| | | bool IsRead = false; |
| | | |
| | | #endregion |
| | | |
| | | //初始化按键数据 |
| | | /// <summary> |
| | | /// 初始化按键数据 |
| | | /// </summary> |
| | | void InitListInfo() |
| | | { |
| | | System.Threading.Tasks.Task.Run(async () => |
| | |
| | | } |
| | | } |
| | | |
| | | //获取按键支持的大类 |
| | | /// <summary> |
| | | /// 获取按键支持的大类 |
| | | /// </summary> |
| | | /// <returns></returns> |
| | | private async System.Threading.Tasks.Task<List<int>> GetTypeMode() |
| | | { |
| | | if (typeModeList != null) |