From 5efaaab958a0f4a91ad9d76b5d5fea0ea3fc3f41 Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期二, 01 十二月 2020 16:24:19 +0800
Subject: [PATCH] 2020-12-01 1.请求路径修改。 2.切换住宅或者查询住宅列表增加获取网关列表。 3.房间增加默认图片选择、比例调整为16:9。4.优化图片裁剪。

---
 HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs |   32 +++++++++++++++++++++++++-------
 1 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
index 21782a6..d0eb981 100644
--- a/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/HomePageBLL.cs
@@ -147,7 +147,7 @@
                         {
                             if (view.Tag.ToString() == function.sid)
                             {
-                                var state = function.trait_on_off.value.ToString() == "on";
+                                var state = function.trait_on_off.curValue.ToString() == "on";
                                 for (int i = 0; i < view.ChildrenCount; i++)
                                 {
                                     if (view.GetChildren(i).GetType() == typeof(Button))
@@ -207,9 +207,9 @@
                 btnSwitch.IsSelected = !btnSwitch.IsSelected;
                 new System.Threading.Thread(() =>
                 {
-                    function.trait_on_off.value = btnSwitch.IsSelected ? "on" : "off";
+                    function.trait_on_off.curValue = btnSwitch.IsSelected ? "on" : "off";
                     System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                    d.Add("on_off", function.trait_on_off.value.ToString());
+                    d.Add("on_off", function.trait_on_off.curValue.ToString());
                     Control.Ins.SendWriteCommand(function, d);
                 })
                 { IsBackground = true }.Start();
@@ -240,10 +240,10 @@
             btnClose.MouseUpEventHandler = (sender, e) =>
             {
                 btnClose.IsSelected = false;
-                curtain.trait_on_off.value = "off";
+                curtain.trait_on_off.curValue = "off";
                 curtain.percent = 0;
                 System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                d.Add("on_off",curtain.trait_on_off.value.ToString());
+                d.Add("on_off",curtain.trait_on_off.curValue.ToString());
                 Control.Ins.SendWriteCommand(curtain, d);
             };
 
@@ -254,13 +254,31 @@
             btnOpen.MouseUpEventHandler = (sender, e) =>
             {
                 btnOpen.IsSelected = false;
-                curtain.trait_on_off.value = "on";
+                curtain.trait_on_off.curValue = "on";
                 curtain.percent = 100;
                 System.Collections.Generic.Dictionary<string, string> d = new System.Collections.Generic.Dictionary<string, string>();
-                d.Add("on_off", curtain.trait_on_off.value.ToString());
+                d.Add("on_off", curtain.trait_on_off.curValue.ToString());
                 Control.Ins.SendWriteCommand(curtain, d);
             };
         }
 
+        /// <summary>
+        /// 鍔犺浇璺宠浆淇℃伅涓績椤甸潰
+        /// </summary>
+        void LoadEvent_GotoMessageCenterPage()
+        {
+            EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
+            {
+                var skipPage = new MessageCenterPage();
+                MainPage.BasePageView.AddChidren(skipPage);
+                skipPage.LoadPage();
+                MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+            };
+            btnMsgBg.MouseUpEventHandler = eventHandler;
+            btnMsgTime.MouseUpEventHandler = eventHandler;
+            btnMsg.MouseUpEventHandler = eventHandler;
+            btnMsgIcon.MouseUpEventHandler = eventHandler;
+        }
+
     }
 }

--
Gitblit v1.8.0