From 944b87b6bcccb095cd73f13f4410fb20faf48f74 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期三, 25 十二月 2019 11:21:06 +0800
Subject: [PATCH] 2019.12.25

---
 ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs
index e620358..ebede4c 100644
--- a/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs
+++ b/ZigbeeApp/Shared/Phone/Device/CommonForm/RoomView.cs
@@ -16,6 +16,12 @@
         /// </summary>
         public Action action;
 
+        FrameLayout roomNameBackground;
+
+        FrameLayout roomTemperatureBackground;
+
+        Button roomListBtn;
+
         public override void RemoveFromParent()
         {
             HdlGatewayReceiveLogic.Current.RemoveEvent("TemperatrueDevice");
@@ -58,7 +64,7 @@
             };
             roomBackView.AddChidren(roomImg);
 
-            var roomNameBackground = new FrameLayout
+            roomNameBackground = new FrameLayout
             {
                 X = Application.GetRealWidth(29),
                 Y = Application.GetRealHeight(282),
@@ -79,7 +85,7 @@
             roomNameBackground.AddChidren(roomName);
 
 
-            var roomTemperatureBackground = new FrameLayout
+            roomTemperatureBackground = new FrameLayout
             {
                 X = Application.GetRealWidth(29),
                 Y = Application.GetRealHeight(374),
@@ -224,7 +230,7 @@
             }
 
 
-            var roomListBtn = new Button()
+            roomListBtn = new Button()
             {
                 X = roomBackView.Width - Application.GetRealWidth(100 + 20),
                 Y = Application.GetRealHeight(20),
@@ -247,5 +253,13 @@
                 };
             };
         }
+
+        /// <summary>
+        /// HideName
+        /// </summary>
+        public void HideName(bool statu)
+        {
+            roomNameBackground.Visible = roomTemperatureBackground.Visible = roomListBtn.Visible = !statu;
+        }
     }
 }

--
Gitblit v1.8.0