From 4e25d344065ffd9248a254ec9d11f0bb4bbbdb5e Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期一, 30 三月 2020 11:34:58 +0800
Subject: [PATCH] 2020-03-30-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs |   49 +++----------------------------------------------
 1 files changed, 3 insertions(+), 46 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs b/ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs
index 385d1e0..026bdf0 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/LogicCommunalPage.cs
@@ -280,7 +280,7 @@
                         case 1:
                             {
                                 var deviceinof = Method.GetCommonDevice(conditions["MacAddr"], conditions["Epoint"]);
-                                name = deviceinof.DeviceEpointName;
+                                name = LocalDevice.Current.GetDeviceEpointName(deviceinof);
                                 selecteddevice.regionNameBtn.Visible = true;
                                 Method.RoomNmae(selecteddevice.regionNameBtn, deviceinof);
 
@@ -724,7 +724,7 @@
                             {
 
                                 var deviceinof = Method.GetCommonDevice(actions["DeviceAddr"].ToString(), actions["Epoint"].ToString());
-                                name = deviceinof.DeviceEpointName;
+                                name = LocalDevice.Current.GetDeviceEpointName(deviceinof);
                                 actiondevice.regionNameBtn.Visible = true;
                                 Method.RoomNmae(actiondevice.regionNameBtn, deviceinof);
                                 switch (deviceinof.Type)
@@ -1324,50 +1324,7 @@
             };
 
         }
-        /// <summary>
-        /// 闂幇寮忔彁绀烘鐨勬柟娉�
-        /// </summary>
-        /// <param name="tipText">鎻愮ず鍐呭</param>
-        /// <param name="second">鍋滅暀鏃堕棿鍗曚綅涓簊</param>
-        public void TipView(string tipText, int second = 1)
-        {
-
-            var frameLayout = new FrameLayout { BackgroundColor = 0x50000000 };
-            this.AddChidren(frameLayout);
-
-            var btn = new Button
-            {
-                Gravity = Gravity.Center,
-                Text = tipText,
-                BackgroundColor = 0xff1f1f1f,
-                Width = Application.GetRealWidth(500),
-                Height = Application.GetRealHeight(100),
-                Radius = (uint)Application.GetRealHeight(50),
-            };
-            frameLayout.AddChidren(btn);
-
-            var dateTime1 = DateTime.Now;
-            new System.Threading.Thread(() =>
-            {
-                Application.RunOnMainThread(() =>
-                {
-                    while (true)
-                    {
-                        if ((DateTime.Now - dateTime1).TotalMilliseconds > second * 1000)
-                        {
-                            //榛樿涓�绉掑叧闂�
-                            frameLayout.RemoveFromParent();
-                            break;
-                        }
-                    }
-                });
-            })
-            { IsBackground = true }.Start();
-
-        }
-
-
-      
+    
 
     }
 }

--
Gitblit v1.8.0