| | |
| | | frameHumidityTextFrameLayout.Height = Application.GetRealHeight(160); |
| | | frameHumidityPic.AddChidren(frameHumidityTextFrameLayout); |
| | | |
| | | //湿度数据 |
| | | //湿度数据 |
| | | var btnHumidityStatus = new NormalViewControl(193, 160, true); |
| | | btnHumidityStatus.Text = "20"; |
| | | btnHumidityStatus.TextSize = 30; |
| | |
| | | btnPmStatus.TextAlignment = TextAlignment.BottomRight; |
| | | framePmTextFrameLayout.AddChidren(btnPmStatus); |
| | | |
| | | //PM2.5单位 (第4个,listControl【3】) |
| | | //PM2.5单位 (第4个,listControl【3】) |
| | | var btnPmUnit = new NormalViewControl(144, 148, true); |
| | | btnPmUnit.X = btnPmStatus.Right; |
| | | btnPmUnit.Text = "μg/m³"; |
| | |
| | | this.listControl.Add(btnTemperatureUnit);//(第6个,listControl【5】) |
| | | this.listFrameLayout.Add(frameHumidityTextFrameLayout);//(第1个,listControl【0】) |
| | | this.listFrameLayout.Add(frameTemperatureTextFrameLayout);//(第2个,listControl【1】) |
| | | this.listFrameLayout.Add(framePmTextFrameLayout);//(第3个,listControl【2】) |
| | | this.listFrameLayout.Add(framePmTextFrameLayout);//(第3个,listControl【2】) |
| | | } |
| | | #endregion |
| | | |
| | |
| | | //设置状态文字 |
| | | return curQuality; |
| | | } |
| | | #endregion |
| | | #endregion |
| | | } |
| | | } |