old mode 100755
new mode 100644
| | |
| | | private void InitDeviceEpointIcon(VerticalFrameControl listBackControl)
|
| | | {
|
| | | //获取按组分配的设备
|
| | | var listIcon = this.GetAllDeviceGroup();
|
| | |
|
| | | var listIcon = this.GetAllDeviceGroup(); |
| | | |
| | | var frameBorder = new FrameLayout();
|
| | | frameBorder.Y = Application.GetRealHeight(147);
|
| | | frameBorder.Gravity = Gravity.CenterHorizontal;
|
| | |
| | | //计算真实高度
|
| | | 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)
|
| | | {
|
| | |
| | | listIcon.Insert(0, listTemp);
|
| | | }
|
| | | return listIcon;
|
| | | }
|
| | |
|
| | | } |
| | | #endregion
|
| | |
|
| | | |
| | | #region ■ 回路选择___________________________
|
| | |
|
| | | |
| | | /// <summary>
|
| | | /// 回路选择事件
|
| | | /// </summary>
|