| | |
| | | //计算真实高度
|
| | | int realHeight = this.GetPictrueRealSize(58 + 58);//上下间距
|
| | | realHeight += frameBack.ChildrenCount * this.GetPictrueRealSize(124);//圆圈高度
|
| | | realHeight += (frameBack.ChildrenCount-1) * this.GetPictrueRealSize(60);//圆圈间距
|
| | | realHeight += (frameBack.ChildrenCount - 1) * this.GetPictrueRealSize(60);//圆圈间距
|
| | | if (realHeight > frameBack.Height)
|
| | | {
|
| | | //变更高度
|
| | |
| | | //只要同一种类型的
|
| | | continue;
|
| | | }
|
| | |
|
| | | //获取设备属于【简约多功能面板】
|
| | | var deviceEnumInfo = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice);
|
| | | if (deviceEnumInfo.ConcreteType == Common.DeviceConcreteType.ButtonPanel_SimpleMultifunction)
|
| | | {
|
| | | if (device.Type == DeviceType.TemperatureSensor && device.DeviceEpoint == 1)
|
| | | {
|
| | | //简约多功能面板第1回路是一个绑定温湿度传感器第类型,不是真的温湿度的传感器,需要屏蔽掉
|
| | | continue;
|
| | | }
|
| | | }
|
| | |
|
| | | listRelay.Add(device);
|
| | | if (device.DeviceEpoint == deviceObj.DeviceEpoint)
|
| | | {
|
| | |
| | | }
|
| | | return listIcon;
|
| | | }
|
| | |
|
| | | #endregion
|
| | |
|
| | | #region ■ 回路选择___________________________
|