HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2020-05-13 2be70a32d2a8c517bd9868fb60913fcc843e66fe
ZigbeeApp/Shared/Phone/UserCenter/Device/DeviceMacInfoEditorForm.cs
@@ -268,7 +268,16 @@
                if (this.CheckCanShowFunctionSettionRow() == true)
                {
                    //添加【功能设置】行
                    if (deviceEnumInfo.ConcreteType == DeviceConcreteType.Sensor_PMTwoPointFive)
                    {
                        //PM传感器
                        this.AddFunctionSettionRowPM();
                    }
                    else
                    {
                    this.AddFunctionSettionRow();
                    }
                }
                //添加【干接点设置】行
@@ -682,7 +691,7 @@
            //只有回路数大于1才能有这个菜单
            if (Common.LocalDevice.Current.GetDevicesCountByMac(listNewDevice[0].DeviceAddr) == 1)
            {
                //要求新风小模块的新风有功能设置
                //新风小模块只有一个回路,但要求新风小模块的新风有功能设置
                if (deviceEnumInfo.ConcreteType != DeviceConcreteType.Relay_FangyueFreshAirModul)
                {
                    return;
@@ -743,6 +752,27 @@
            };
        }
        /// <summary>
        /// 添加传感器【功能设置】行
        /// </summary>
        private void AddFunctionSettionRowPM()
        {
            //功能设置
            string caption = Language.StringByID(R.MyInternationalizationString.uFunctionSettingUp);
            var btnFunction = new FrameRowControl(listview.rowSpace / 2);
            listview.AddChidren(btnFunction);
            btnFunction.AddLeftCaption(caption, 600);
            //向右图标
            btnFunction.AddRightArrow();
            //底线
            btnFunction.AddBottomLine();
            btnFunction.ButtonClickEvent += (sender, e) =>
            {
                var form = new DeviceFunctionSettionForm();
                form.AddForm(listNewDevice[0], false);
            };
        }
        #endregion;
        #region ■ 方向与限位(窗帘)___________________