From f6fd8acd7c53c44187e70b4709443318a628f4b5 Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期二, 16 六月 2020 13:12:33 +0800
Subject: [PATCH] 2020-06-016
---
HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 16 ++++++++++++++--
1 files changed, 14 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
index e3fef44..c3780c3 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
@@ -11,8 +11,8 @@
/// </summary>
public static void LoadEvent_RefreshAir()
{
- bodyView.btnTempValues.Text = MainPage.cityInfo.temperature == null ? "--" : MainPage.cityInfo.temperature;
- bodyView.btnHumidityValues.Text = MainPage.cityInfo.humidity == null ? "--" : MainPage.cityInfo.humidity;
+ bodyView.btnTempValues.Text = MainPage.cityInfo.temperature == null ? "--" : MainPage.cityInfo.temperature + "掳";
+ bodyView.btnHumidityValues.Text = MainPage.cityInfo.humidity == null ? "--" : MainPage.cityInfo.humidity + "%";
bodyView.btnPm25Values.Text = MainPage.cityInfo.pm25 == null ? "--" : MainPage.cityInfo.pm25;
}
@@ -170,6 +170,18 @@
}
/// <summary>
+ /// 鍔犺浇鐢佃鎺у埗浜嬩欢
+ /// </summary>
+ /// <param name="tV"></param>
+ /// <param name="button"></param>
+ void LoadEvent_ControlTV(TV tV,Button button)
+ {
+ button.MouseUpEventHandler = (sender, e) => {
+ tV.ControlTV(InfraredCode_TV.Power);
+ };
+ }
+
+ /// <summary>
/// 鍔犺浇绐楀笜鎺у埗浜嬩欢
/// </summary>
void LoadEvent_ControlCurtain(Curtain curtain, Button btnClose, Button btnOpen)
--
Gitblit v1.8.0