| | |
| | | btnIcon2.BackgroundColor = 0xfffef1ed;
|
| | | btnIcon2.Radius = (uint)iconWidth / 2;
|
| | | btnIcon2.Gravity = Gravity.Center;
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //设备图标
|
| | | var listDevice = Common.LocalDevice.Current.GetDevicesByMac(deviceMac);
|
| | |
| | | btnIcon = new NormalViewControl(this.GetPictrueRealSize(121), this.GetPictrueRealSize(121), false);
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | | Common.LocalDevice.Current.SetDeviceObjectIconToControl(btnIcon, listDevice);
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | btnIcon2.BackgroundColor = 0xfffef1ed;
|
| | | btnIcon2.Radius = (uint)iconWidth / 2;
|
| | | btnIcon2.Gravity = Gravity.Center;
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //设备图标
|
| | | btnIcon = new NormalViewControl(this.GetPictrueRealSize(121), this.GetPictrueRealSize(121), false);
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | | Common.LocalDevice.Current.SetDeviceIconToControl(btnIcon, Common.LocalDevice.Current.GetDevice(deviceMacAddr, epoint));
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
|
| | | }
|
| | |
|
| | | /// <summary>
|
| | |
| | | btnIcon2.BackgroundColor = 0xfffef1ed;
|
| | | btnIcon2.Radius = (uint)iconWidth / 2;
|
| | | btnIcon2.Gravity = Gravity.Center;
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon2, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //设备图标
|
| | | btnIcon = new NormalViewControl(this.GetPictrueRealSize(121), this.GetPictrueRealSize(121), false);
|
| | | btnIcon.Gravity = Gravity.Center;
|
| | | HdlGatewayLogic.Current.SetGatewayIcon(btnIcon, i_gateway);
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnIcon, ChidrenBindMode.BindEvent);
|
| | | }
|
| | |
|
| | | #endregion
|