| | |
| | | /// 当前温度信息-室内 |
| | | /// </summary> |
| | | TextButton btnIndoorTempValues; |
| | | Button btnHumidityIcon; |
| | | Button btnPm25Icon; |
| | | /// <summary> |
| | | /// 当前湿度信息-室内 |
| | | /// </summary> |
| | |
| | | foreach (var temp in tempSensorList) |
| | | { |
| | | double tempValue = 0; |
| | | double.TryParse(temp.GetAttrState(FunctionAttributeKey.Value), out tempValue); |
| | | double.TryParse(temp.GetAttrState("temperature"), out tempValue); |
| | | if (tempValue > 0) |
| | | { |
| | | tempTotalValues += tempValue; |
| | |
| | | btnIndoorTempValues.Width = btnIndoorTempValues.GetTextWidth(); |
| | | environmentalView.AddChidren(btnIndoorTempValues); |
| | | |
| | | Button btnHumidityIcon = new Button() |
| | | btnHumidityIcon = new Button() |
| | | { |
| | | X = btnIndoorTempValues.Right + Application.GetRealWidth(8), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | foreach (var humi in humiSensorList) |
| | | { |
| | | double humiValue = 0; |
| | | double.TryParse(humi.GetAttrState(FunctionAttributeKey.Value), out humiValue); |
| | | double.TryParse(humi.GetAttrState("humidity"), out humiValue); |
| | | if (humiValue > 0) |
| | | { |
| | | humiTotalValues += humiValue; |
| | |
| | | btnIndoorHumiValues.Width = btnIndoorHumiValues.GetTextWidth(); |
| | | environmentalView.AddChidren(btnIndoorHumiValues); |
| | | |
| | | Button btnPm25Icon = new Button() |
| | | btnPm25Icon = new Button() |
| | | { |
| | | X = btnIndoorHumiValues.Right + Application.GetRealWidth(4), |
| | | Gravity = Gravity.CenterVertical, |
| | |
| | | SelectedImagePath = "Collection/DefenseStatusIcon.png", |
| | | UnSelectedImagePath = "Collection/DisarmStatusIcon.png" |
| | | }; |
| | | if (DB_ResidenceData.Instance.GatewayType == 1) |
| | | if (false && DB_ResidenceData.Instance.GatewayType == 1) |
| | | { |
| | | |
| | | topView.AddChidren(btnSecurityStatus); |
| | | foreach (var temp in FunctionList.List.securities) |
| | | { |