| | |
| | | public void InitControl()
|
| | | {
|
| | | var listDevice = Common.LocalDevice.Current.GetDevicesByMac(this.deviceMac);
|
| | | if (listDevice.Count == 0)
|
| | | {
|
| | | //针对单纯只有一个200端点的设备
|
| | | listDevice.Add(Common.LocalDevice.Current.GetOTADevice(this.deviceMac));
|
| | | }
|
| | | //图标
|
| | | btnIcon = frameTable.AddLeftIcon(81);
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice);
|
| | |
| | | hadRefresh = true;
|
| | |
|
| | | var listDevice = Common.LocalDevice.Current.GetDevicesByMac(this.deviceMac);
|
| | | if (listDevice.Count == 0)
|
| | | {
|
| | | //针对单纯只有一个200端点的设备
|
| | | listDevice.Add(Common.LocalDevice.Current.GetOTADevice(this.deviceMac));
|
| | | }
|
| | | //图标
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice);
|
| | | //设备
|