| | |
| | | }; |
| | | topView.AddChidren(btnTop); |
| | | |
| | | btnLinkStateTip = new Button() |
| | | { |
| | | Y = Application.GetRealHeight(16), |
| | | Height = Application.GetRealWidth(14), |
| | | BackgroundColor = CSS_Color.LinkTipFail, |
| | | Radius = (uint)Application.GetRealWidth(3), |
| | | TextAlignment = TextAlignment.Center, |
| | | TextSize = CSS_FontSize.PromptFontSize_FirstLevel, |
| | | TextColor = CSS_Color.MainBackgroundColor, |
| | | }; |
| | | topView.AddChidren(btnLinkStateTip); |
| | | //更新链接状态icon颜色 |
| | | CheckLinkStatus();//2020-12-22 |
| | | |
| | | |
| | | btnResidenceName = new Button() |
| | | { |
| | | X = Application.GetRealWidth(16), |
| | |
| | | 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); |