From af4101b1d8461331bc3163b738fc75d4bf67c85c Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 28 七月 2020 17:47:44 +0800 Subject: [PATCH] 2020-07-28-1 --- HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs index 0431e70..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; } @@ -94,7 +94,7 @@ } /// <summary> - /// 鏇存柊鐏厜鏄剧ず鐘舵�� + /// 鏇存柊鏄剧ず鐘舵�� /// </summary> public static void UpdataFunctionStates(Function function) { @@ -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