陈嘉乐
2020-04-27 18b93d511dc764b469d7c4a7e755f7274f89cdb4
ZigbeeApp/Shared/Phone/UserCenter/Device/Panel/PanelBackLighWithSensorForm.cs
@@ -73,20 +73,21 @@
            //清空bodyFrame
            this.ClearBodyFrame();
            HdlThreadLogic.Current.RunMain(() =>
            {
            listview = new VerticalScrolViewLayout();
            listview.Height = Application.GetRealHeight(1981 - 184);
            bodyFrameLayout.AddChidren(listview);
            HdlThreadLogic.Current.RunMain(() =>
            {
                //添加节能模式
                this.AddEnergyConservationRow();
                //添加点击前,亮度进度条
                this.AddBeforeClickProgress();
                //添加点击后,亮度进度条
                this.AddAfterClickProgress();
            });
            //容器补充
            FinishInitControl(listview);
                this.FinishInitControl(listview, energyModeInfo.enable);
            //保存
            var btnSave = new BottomClickButton();
            btnSave.TextID = R.MyInternationalizationString.uSave;
@@ -96,6 +97,7 @@
                //保存面板数据
                this.SavePanelData();
            };
            });
        }
        #endregion
@@ -191,9 +193,10 @@
                //展开或者缩小的高度
                var value = Application.GetRealHeight(443);
                frameBack.Height += value;
            }
                //添加接近感应
                this.AddProximitySensorsRow(frameBack);
            }
        }
        #endregion
@@ -572,15 +575,15 @@
            }
            //节能模式修改(他们说随便一个回路就行)
            //设备同事说默认去秒时间,这样接近感应功能才合理
            energyModeInfo.time = 1;
            //肖志豪给按键控制面板(四开八控)设备,说默认15秒时间,这样接近感应功能才合理
            energyModeInfo.time = 15;
            result = await HdlDevicePanelLogic.Current.SetDeviceEnergyConservationMode(panelDevice, energyModeInfo.enable, energyModeInfo.time, energyModeInfo.level);
            if (result == false)
            {
                this.CloseProgressBar();
                return;
            }
            //接近修改(他们说随便一个回路就行)
            //接近传感设置  (肖志豪给按键控制面板(四开八控)设备,传感距离和触发延迟时间默认用最大值)
            result = await HdlDevicePanelLogic.Current.SetProximitySensorStatus(panelDevice, proximitySensorsInfo.enable);
            if (result == false)
            {