| | |
| | | {
|
| | | //检测此回路是否拥有定位功能(拿端点最小的那个回路去定位)
|
| | | bool canTest = Common.LocalDevice.Current.DeviceIsCanFixedPosition(listNewDevice[0]);
|
| | | if (this.deviceEnumInfo.BeloneType == DeviceBeloneType.A智能门锁)
|
| | | {
|
| | | canTest = false;
|
| | | }
|
| | | else if (this.deviceEnumInfo.BeloneType == DeviceBeloneType.A传感器
|
| | | && this.deviceEnumInfo.ConcreteType != DeviceConcreteType.Sensor_Pir)
|
| | | {
|
| | | //传感器除了Pir都没有定位功能
|
| | | canTest = false;
|
| | | }
|
| | | var frame = new TopRightMenuControl(canTest == true ? 2 : 1, 1);
|
| | |
|
| | | var frame = new TopRightMenuControl(canTest == true ? 2 : 1, 1);
|
| | | string deviceMenu = string.Empty;
|
| | | if (canTest == true)
|
| | | {
|