| | |
| | | }; |
| | | topView.AddChidren(btnTop); |
| | | |
| | | btnLinkStateTip = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | | Y = Application.GetRealHeight(46), |
| | | Width = Application.GetRealWidth(6), |
| | | Height = Application.GetRealWidth(6), |
| | | BackgroundColor = CSS_Color.LinkTipFail, |
| | | Radius = (uint)Application.GetRealWidth(3), |
| | | }; |
| | | topView.AddChidren(btnLinkStateTip); |
| | | //更新链接状态icon颜色 |
| | | CheckLinkStatus();//2020-12-22 |
| | | |
| | | |
| | | btnResidenceName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(26), |
| | | X = Application.GetRealWidth(16), |
| | | Y = Application.GetRealHeight(32), |
| | | Width = Application.GetRealWidth(300), |
| | | Height = Application.GetRealHeight(33), |
| | |
| | | IsBold = true |
| | | }; |
| | | topView.AddChidren(btnResidenceName); |
| | | btnLinkStateTip = new Button() |
| | | { |
| | | //X = Application.GetRealWidth(16), |
| | | Y = btnResidenceName.Bottom, |
| | | Height = Application.GetRealWidth(14), |
| | | BackgroundColor = CSS_Color.LinkTipFail, |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | topView.AddChidren(btnLinkStateTip); |
| | | //btnLinkStateTip.Width = btnLinkStateTip.GetTextWidth(); |
| | | //更新链接状态icon颜色 |
| | | |
| | | |
| | | |
| | | #if DEBUG |
| | | int msdId = 111; |
| | | btnResidenceName.MouseUpEventHandler = (sender, e) => |
| | | { |
| | | Control.Ins.AuthGateway(); |
| | | }; |
| | | #endif |
| | | |
| | |
| | | Height = Application.GetRealHeight(32), |
| | | }; |
| | | topView.AddChidren(environmentalView); |
| | | CheckLinkStatus();//2020-12-22 |
| | | |
| | | #region 环境数据 |
| | | var tempSensorList = FunctionList.List.GetEnvirSensorsList().FindAll((obj) => obj.spk == SPK.SensorTemperature); |
| | | var humiSensorList = FunctionList.List.GetEnvirSensorsList().FindAll((obj) => obj.spk == SPK.SensorHumidity); |
| | |
| | | { |
| | | btnIcon.UnSelectedImagePath = "FunctionIcon/Music/MusicIcon.png"; |
| | | btnIcon.SelectedImagePath = "FunctionIcon/Music/MusicOnIcon.png"; |
| | | btnCollection.Visible = false; |
| | | Button btnPower; |
| | | btnPower = new Button() |
| | | { |