| | |
| | | if (this.CheckCanShowFunctionSettionRow() == true)
|
| | | {
|
| | | //添加【功能设置】行
|
| | | if (deviceEnumInfo.ConcreteType == DeviceConcreteType.Sensor_PMTwoPointFive)
|
| | | {
|
| | | //PM传感器
|
| | | this.AddFunctionSettionRowPM();
|
| | | }
|
| | | else
|
| | | {
|
| | | this.AddFunctionSettionRow();
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | //添加【干接点设置】行
|
| | |
| | | //只有回路数大于1才能有这个菜单
|
| | | if (Common.LocalDevice.Current.GetDevicesCountByMac(listNewDevice[0].DeviceAddr) == 1)
|
| | | {
|
| | | //要求新风小模块的新风有功能设置
|
| | | //新风小模块只有一个回路,但要求新风小模块的新风有功能设置
|
| | | if (deviceEnumInfo.ConcreteType != DeviceConcreteType.Relay_FangyueFreshAirModul)
|
| | | {
|
| | | return;
|
| | |
| | | };
|
| | | }
|
| | |
|
| | | /// <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 ■ 方向与限位(窗帘)___________________
|