| | |
| | | this.AddChidren(btnIcon2);
|
| | |
|
| | | //设备图标
|
| | | var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceMac);
|
| | | if (listDevice.Count == 0)
|
| | | {
|
| | | //对应单纯只有200回路的设备
|
| | | listDevice.Add(Common.LocalDevice.Current.GetOTADevice(deviceMac));
|
| | | }
|
| | | btnIcon = new NormalViewControl(Application.GetMinRealAverage(121), Application.GetMinRealAverage(121), false);
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice);
|
| | | this.AddChidren(btnIcon);
|
| | | }
|
| | |
|
| | |
| | | if (this.deviceMac != null)
|
| | | {
|
| | | //刷新图标
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, Common.LocalDevice.Current.GetDevicesByMac(deviceMac));
|
| | | var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceMac);
|
| | | if (listDevice.Count == 0)
|
| | | {
|
| | | //对应单纯只有200回路的设备
|
| | | listDevice.Add(Common.LocalDevice.Current.GetOTADevice(deviceMac));
|
| | | }
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice);
|
| | | }
|
| | | else
|
| | | {
|