黄学彪
2020-03-06 a5b3c4bae726ef6770d4bfcbf2f4b50a37ed4a15
ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/ChooseKeyModePage.cs
@@ -29,23 +29,46 @@
            this.targetList = targetSelectList;
        }
        #region ◆ 变量申明__________________________
        ZigBee.Device.Panel currentKey;//当前按键
        //显示被绑定设备或场景的view
        VerticalScrolViewLayout midVerticalScrolViewLayout;//中部刷新列表
        HorizontalScrolViewLayout btnHorizontalScrolViewLayout;//房间列表左右滑动布局
        #region 变量申明
        /// <summary>
        /// 当前按键
        /// </summary>
        ZigBee.Device.Panel currentKey;
        /// <summary>
        /// 中部刷新列表
        /// </summary>
        VerticalScrolViewLayout midVerticalScrolViewLayout;
        /// <summary>
        /// 房间列表左右滑动布局
        /// </summary>
        HorizontalScrolViewLayout btnHorizontalScrolViewLayout;
        /// <summary>
        /// 按键配置的目标列表
        /// </summary>
        List<CommonDevice> targetList = new List<CommonDevice>();//本地临时选中列表
        List<CommonDevice> targetList = new List<CommonDevice>();
        /// <summary>
        /// 新的按键配置目标列表中,目标实际存在按键中,此时要删掉的数据
        /// 本地旧的选中列表
        /// </summary>
        List<CommonDevice> oldTargetList = new List<CommonDevice>();//本地旧的选中列表
        int currentClusterID = 6;//当前簇ID
        public Action<List<BindListResponseObj>> action;//回调绑定目标页面刷新
        int currentModeID = 0;//当前模式ID
        string curDeviceBindType = "";//当前设备绑定类型
        List<CommonDevice> oldTargetList = new List<CommonDevice>();
        /// <summary>
        /// 当前簇ID
        /// </summary>
        int currentClusterID = 6;
        /// <summary>
        /// 回调绑定目标页面刷新
        /// </summary>
        public Action<List<BindListResponseObj>> action;
        /// <summary>
        /// 当前模式ID
        /// </summary>
        int currentModeID = 0;
        /// <summary>
        /// 当前设备绑定类型
        /// </summary>
        string curDeviceBindType = "";
        /// <summary>
        /// 类型的具体模式列表
        /// </summary>
        List<int> typeDetailModeList = new List<int> { };
        #endregion
@@ -96,6 +119,7 @@
                BackgroundColor = Shared.Common.ZigbeeColor.Current.XMBlack,
                TextColor = Shared.Common.ZigbeeColor.Current.XMWhite,
                TextSize = 16,
                IsBold = true,
            };
            bottomFrameLayout.AddChidren(btnFinifh);
            #endregion
@@ -577,6 +601,9 @@
            });
        }
        /// <summary>
        /// 添加开关模式
        /// </summary>
        async private void AddSwitchMode()
        {
            if (typeDetailModeList == null)
@@ -612,6 +639,7 @@
                    Y = Application.GetRealHeight(58),
                    TextColor = Shared.Common.ZigbeeColor.Current.TextBlack,
                    TextAlignment = TextAlignment.CenterLeft,
                    TextSize = 14,
                };
                rowLayout.AddChidren(btnModeText);
@@ -721,6 +749,9 @@
            }
        }
        /// <summary>
        /// 添加调光模式
        /// </summary>
        async private void AddDimmerMode()
        {
            if (typeDetailModeList == null)
@@ -767,6 +798,7 @@
                    Y = Application.GetRealHeight(58),
                    TextColor = Shared.Common.ZigbeeColor.Current.TextBlack,
                    TextAlignment = TextAlignment.CenterLeft,
                    TextSize = 14,
                };
                rowLayout.AddChidren(btnModeText);
@@ -810,7 +842,7 @@
                        break;
                }
                if (i == typeDetailModeList.Count - 1)
                if (i == typeDetailModeListTemp.Count - 1)
                {
                    line2.Visible = false;
                }
@@ -902,6 +934,9 @@
            }
        }
        /// <summary>
        /// 添加窗帘模式
        /// </summary>
        async private void AddCurtainMode()
        {
            if (typeDetailModeList == null)
@@ -937,6 +972,7 @@
                    Y = Application.GetRealHeight(58),
                    TextColor = Shared.Common.ZigbeeColor.Current.TextBlack,
                    TextAlignment = TextAlignment.CenterLeft,
                    TextSize = 14,
                };
                rowLayout.AddChidren(btnModeText);
@@ -1072,10 +1108,6 @@
            }
        }
        private void FinisfhEventHandler(object sender, MouseEventArgs e)
        {
        }
        public void DeviceInfoChange(CommonDevice common, string typeTag)
        {