| | |
| | | //获取设备的固定属性
|
| | | HdlDeviceFixedAttributeLogic.Current.SetAllFixedAttributeToDevice(device);
|
| | |
|
| | | if ((device is OTADevice) == false)
|
| | | {
|
| | | //不需要200端点的那个设备
|
| | | this.dicNewDevice[device.DeviceAddr].Add(device);
|
| | | //不需要200端点的那个设备 2020.01.13 变更:ota也加进来
|
| | | this.dicNewDevice[device.DeviceAddr].Add(device);
|
| | |
|
| | | //有新设备,开启显示设备信息界面的线程(里面会等待三秒这样)
|
| | | this.StartShowDeviceAddSuccessFormThread();
|
| | | }
|
| | | //有新设备,开启显示设备信息界面的线程(里面会等待三秒这样)
|
| | | this.StartShowDeviceAddSuccessFormThread();
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | //重新变更UI
|
| | | foreach (var device in listDevice)
|
| | | {
|
| | | if (device is OTADevice)
|
| | | {
|
| | | continue;
|
| | | }
|
| | | device.IconPath = string.Empty;
|
| | | device.ReSave();
|
| | | }
|