From 26cee91cc3332e09db5cadb9faf76612b1b0c081 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期一, 11 五月 2020 11:22:34 +0800
Subject: [PATCH] 2020-05-11-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs |   47 ++++++++++++++++-------------------------------
 1 files changed, 16 insertions(+), 31 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
index fa90f8c..54c93b3 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
@@ -29,7 +29,6 @@
         FrameLayout listLogicFl = new FrameLayout();
         ///甯稿紑鑷姩鍖栧垪琛ㄤ笂涓嬫粦鍔ㄧ殑鎺т欢
         VerticalRefreshLayout verticalRefresh = new VerticalRefreshLayout();
-
         public async void Show()
         {
             #region  鐣岄潰鐨勫竷灞�浠g爜
@@ -141,7 +140,7 @@
 
             var addIconclickBtn = new Button
             {
-                Width = Application.GetRealWidth(90+69+63),
+                Width = Application.GetRealWidth(90 + 69 + 63),
                 Height = Application.GetRealHeight(69),
                 X = Application.GetRealWidth(800),
                 Y = Application.GetRealHeight(60),
@@ -202,6 +201,21 @@
             };
             Read(true);
             #endregion
+
+            DoorLockCommonInfo.LogicAction = (_bool) =>
+            {
+
+                try
+                {
+                    Application.RunOnMainThread(() =>
+                    {
+                        Send.CurrentDoorLock.IsDoorLockNormallyMode = _bool;
+                        ModeView();
+                    });
+                }
+                catch { }
+            };
+
         }
         /// <summary>
         /// 甯稿紑妯″紡寮�鍏冲垏鎹㈠浘鏍囩晫闈�
@@ -611,35 +625,6 @@
                 };
             }
         }
-
-
-        //public static Action<bool> action1=DoorLockCommonInfo.LogicAction;
-     
-
-        /// <summary>
-        /// 瀹氭椂鏇存柊甯稿紑妯″紡(闃叉閫氳繃闂ㄩ攣鍏抽棴娌″強鏃跺埛鏂扮姸鎬�)
-        /// </summary>
-        //System.Threading.Thread updateThread;
-        //public void UpdateModeIcon()
-        //{
-        //    updateThread = new System.Threading.Thread(() =>
-        //    {
-        //        while (this.Parent != null)
-        //        {
-        //            System.Threading.Thread.Sleep(1000);
-        //            Application.RunOnMainThread(() =>
-        //            {
-        //                try
-        //                {
-        //                    ModeView();
-        //                }
-        //                catch { }
-                //            });
-        //        }
-        //    });
-        //    updateThread.Start();
-        //}
-
 
     }
 }

--
Gitblit v1.8.0