| | |
| | | Common.LocalDevice.Current.SetDeviceIconToControl(btnDeviceIcon, i_device);
|
| | | frameIconBackGroud.AddChidren(btnDeviceIcon);
|
| | | //重新绑定事件
|
| | | this.ChangedChidrenBindMode(frameIconBackGroud, ChidrenBindMode.BindEventOnly);
|
| | | this.ChangedChidrenBindMode(frameIconBackGroud, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //设备名字
|
| | | this.btnDeviceName = new NormalViewControl(Application.GetRealWidth(600), this.Height, false);
|
| | |
| | | btnDeviceName.Text = Common.LocalDevice.Current.GetDeviceEpointName(i_device);
|
| | | btnDeviceName.SelectedTextColor = Common.ZigbeeColor.Current.GXCTextSelectedColor;
|
| | | btnDeviceName.Gravity = Gravity.CenterVertical;
|
| | | this.AddChidren(btnDeviceName, ChidrenBindMode.BindEventOnly);
|
| | | this.AddChidren(btnDeviceName, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | btnDeviceName.Y += chidrenYaxis;
|
| | |
| | | this.AddChidren(btnSelect, ChidrenBindMode.NotBind);
|
| | | btnSelect.InitControl();
|
| | | //复合控件需要特殊处理
|
| | | this.ChangedChidrenBindMode(btnSelect, ChidrenBindMode.BindEventOnly);
|
| | | this.ChangedChidrenBindMode(btnSelect, ChidrenBindMode.BindEvent);
|
| | | if (chidrenYaxis != 0)
|
| | | {
|
| | | btnSelect.btnIcon.Y += chidrenYaxis;
|