| | |
| | | Common.LocalDevice.Current.SetDeviceIconToControl(btnDeviceIcon, i_device);
|
| | | frameIconBackGroud.AddChidren(btnDeviceIcon);
|
| | | //重新绑定事件
|
| | | this.frameTable.ChangedChidrenBindMode(frameIconBackGroud, ChidrenBindMode.BindEventOnly);
|
| | | this.frameTable.ChangedChidrenBindMode(frameIconBackGroud, ChidrenBindMode.BindEvent);
|
| | |
|
| | | //设备名字
|
| | | this.btnDeviceName = new NormalViewControl(600, 60, true);
|
| | | if (this.device.Type == DeviceType.WindowCoveringDevice)
|
| | | {
|
| | | //窗帘因为右边有三个按钮,所以需要所有名字的宽度
|
| | | this.btnDeviceName.Width = Application.GetRealWidth(360);
|
| | | }
|
| | | btnDeviceName.X = Application.GetRealWidth(181);
|
| | | //当指定实际坐标时,这里需要的偏移量为2倍
|
| | | btnDeviceName.Y = Application.GetRealHeight(16) + this.chidrenYaxis * 2;
|
| | | btnDeviceName.Text = Common.LocalDevice.Current.GetDeviceEpointName(i_device);
|
| | | btnDeviceName.SelectedTextColor = Common.ZigbeeColor.Current.GXCTextSelectedColor;
|
| | | this.frameTable.AddChidren(btnDeviceName, ChidrenBindMode.BindEventOnly);
|
| | | this.frameTable.AddChidren(btnDeviceName, ChidrenBindMode.BindEvent);
|
| | |
|
| | | if (this.hadStatuFunction == false)
|
| | | {
|
| | |
| | | btnStatu.Y = Application.GetRealHeight(70) + this.chidrenYaxis * 2;
|
| | | btnStatu.TextSize = 10;
|
| | | btnStatu.TextColor = UserCenterColor.Current.TextGrayColor1;
|
| | | this.frameTable.AddChidren(btnStatu, ChidrenBindMode.BindEventOnly);
|
| | | this.frameTable.AddChidren(btnStatu, ChidrenBindMode.BindEvent);
|
| | | }
|
| | |
|
| | | //底线
|