From b800fbdf874cdc75ddc137ea2c22ac2c25d8b45c Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期二, 26 十一月 2019 10:10:37 +0800
Subject: [PATCH] 2019.11.26

---
 ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs b/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs
index b20b6e1..017e272 100644
--- a/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs
+++ b/ZigbeeApp/Shared/Phone/UserView/UserHomeView.cs
@@ -260,6 +260,15 @@
                                                 ac.currentSystemMode = attriButeList[0].AttriButeData;
                                                 ac.LastDateTime = DateTime.Now;
                                                 break;
+
+                                            case 4099:
+                                                var value = Convert.ToString(attriButeList[0].AttriButeData, 2).PadLeft(16, '0');
+                                                var modeStr = value.Substring(value.Length - 5, 5);
+                                                for (int j = 0; j < modeStr.Length; j++)
+                                                {
+                                                    ac.listSupportMode[j] = Convert.ToInt32(modeStr[j]) == 49 ? 1 : 0;
+                                                }
+                                                break;
                                         }
                                         (rowFL.GetChildren(0) as FunctionMainView).IsSelected = ac.currentSystemMode != 0;
                                         (rowFL.GetChildren(0) as FunctionMainView).StatuButton.Text = deviceUI.GetDeviceStatu();
@@ -614,10 +623,7 @@
             //娑堟伅
             messageBtn.MouseUpEventHandler += (send, e) =>
             {
-                var roomList = new Shared.Phone.Device.Room.RoomManagement();
-                HomePage.Instance.AddChidren(roomList);
-                HomePage.Instance.PageIndex += 1;
-                roomList.Show();
+               
             };
 
             #endregion
@@ -1364,6 +1370,7 @@
                                 ac.ReadFanMode();
                                 ac.ReadSystemMode();
                                 ac.ReadSystemFansSwingMode();
+                                ac.ReadModeSupport();
                             });
                         }
                         else
@@ -1379,6 +1386,7 @@
                                 ac.ReadFanMode();
                                 ac.ReadSystemMode();
                                 ac.ReadSystemFansSwingMode();
+                                ac.ReadModeSupport();
                             }
                         }
                         var lightView = new FunctionMainView(xx, yy);

--
Gitblit v1.8.0