From ac909072af41b3dcb05d4a7df3d27a8e85e4e7e2 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期日, 28 六月 2020 17:43:18 +0800
Subject: [PATCH] 2020-06-28-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs |   33 ++++++++++++---------------------
 1 files changed, 12 insertions(+), 21 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs b/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs
index 21e844f..feab18b 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/RoomAndDeviceView.cs
@@ -448,27 +448,18 @@
                 deviceFramelayout.AddChidren(lineBtn);
                 EventHandler<MouseEventArgs> devicclick = (sen, e) =>
                 {
-                    //clickbutton.IsSelected = false;
-                    //clickbutton = deviceIconBtn;
-                    //deviceIconBtn.IsSelected = true;
-                    //clickframeLayout.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor;
-                    //clickframeLayout = bjFramelayout;
-                    //bjFramelayout.BackgroundColor = ZigbeeColor.Current.LogicIconBackgroundColor;
-                    //clicktextcolcrbutton.IsSelected = false;
-                    //clicktextcolcrbutton = devicename;
-                    //devicename.IsSelected = true;
-                    //var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor };
-                    //this.AddChidren(flMain);
-                    //CurrentDeviceState.CurrentDeviceView(flMain, common, false, IfType);
-
-
-                    var nightlight = new Nightlight();
-                    UserView.HomePage.Instance.AddChidren(nightlight);
-                    UserView.HomePage.Instance.PageIndex += 1;
-                    nightlight.Show();
-
-
-
+                    clickbutton.IsSelected = false;
+                    clickbutton = deviceIconBtn;
+                    deviceIconBtn.IsSelected = true;
+                    clickframeLayout.BackgroundColor = ZigbeeColor.Current.LogicMiddleBackgroundColor;
+                    clickframeLayout = bjFramelayout;
+                    bjFramelayout.BackgroundColor = ZigbeeColor.Current.LogicIconBackgroundColor;
+                    clicktextcolcrbutton.IsSelected = false;
+                    clicktextcolcrbutton = devicename;
+                    devicename.IsSelected = true;
+                    var flMain = new FrameLayout { BackgroundColor = ZigbeeColor.Current.LogicViewBackgroundColor };
+                    this.AddChidren(flMain);
+                    CurrentDeviceState.CurrentDeviceView(flMain, common, false, IfType);
                 };
                 deviceFramelayout.MouseUpEventHandler += devicclick;
                 bjFramelayout.MouseUpEventHandler += devicclick;

--
Gitblit v1.8.0