| | |
| | | btnDeviceName.TextColor = CSS_Color.FirstLevelTitleColor;
|
| | | btnDeviceName.TextSize = CSS_FontSize.EmphasisFontSize_FirstLevel;
|
| | | btnDeviceName.Text = device.name;
|
| | | btnDeviceName.Width = btnDeviceName.GetRealWidthByText();
|
| | | //btnDeviceName.Width = btnDeviceName.GetRealWidthByText();
|
| | | FrameWhiteCentet1.AddChidren(btnDeviceName);
|
| | | //房间名字
|
| | | this.btnRoomName = new NormalViewControl(270, 21, true);
|
| | |
| | | btnRoomName.TextColor = CSS_Color.PromptingColor1;
|
| | | btnRoomName.TextSize = CSS_FontSize.PromptFontSize_FirstLevel;
|
| | | btnRoomName.Text = device.GetRoomListName();
|
| | | btnRoomName.Width = btnRoomName.GetRealWidthByText();
|
| | | //btnRoomName.Width = btnRoomName.GetRealWidthByText();
|
| | | FrameWhiteCentet1.AddChidren(btnRoomName);
|
| | | if (ShowColltionButton)
|
| | | {
|
| | |
| | |
|
| | | //从新计算宽度
|
| | | this.btnDeviceName.Text = btnHigherDeviceName.Text;
|
| | | this.btnDeviceName.Width = this.btnDeviceName.GetRealWidthByText();
|
| | | //this.btnDeviceName.Width = this.btnDeviceName.GetRealWidthByText();
|
| | |
|
| | | this.btnRoomName.Text = btnHigherRoom.Text;
|
| | | this.btnRoomName.Width = this.btnRoomName.GetRealWidthByText();
|
| | | //this.btnRoomName.Width = this.btnRoomName.GetRealWidthByText();
|
| | |
|
| | | //回调事件
|
| | | this.SettionFinishEvent?.Invoke();
|