From cf0bffdf072bae11bdb8c780d0a355818700f713 Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期一, 18 五月 2020 15:42:45 +0800
Subject: [PATCH] 请合并代码,优化面板问题

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

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs b/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
old mode 100755
new mode 100644
index 4c51329..17e5641
--- a/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/SoneLogicList.cs
@@ -16,7 +16,7 @@
 
         }
         /// 缁欏緪姊呭埛鏂扮晫闈㈢敤鐨�
-        public  Action<bool> action;
+        public Action<bool> action;
         ///绗簩鍧楃涓�绾х埗鎺т欢
         FrameLayout fLayout = new FrameLayout();
         ///绗笁鍧楃涓�绾х埗鎺т欢
@@ -33,7 +33,7 @@
         public int timeValue = 0;
         public async void Show()
         {
-           
+
             #region  鐣岄潰鐨勫竷灞�浠g爜
             UserView.HomePage.Instance.ScrollEnabled = false;//閿佷綇宸︽粦
             TopView view = new TopView();
@@ -41,7 +41,7 @@
             view.toptitleNameBtn.TextID = MyInternationalizationString.openmode;
             view.clickBtn.MouseDownEventHandler += (sender, e) =>
             {
-                UserView.HomePage.Instance.ScrollEnabled = true;
+                UserView.HomePage.Instance.ScrollEnabled = true;
                 //鎶婇潤鎬佸彉閲忕殑杩欎釜涓滆タ缃┖
                 soneLogicList = null;
                 this.RemoveFromParent();
@@ -215,7 +215,7 @@
         /// <summary>
         /// 甯稿紑妯″紡寮�鍏冲垏鎹㈠浘鏍囩晫闈�
         /// </summary>
-        public  void ModeView()
+        public void ModeView()
         {
 
             fLayout.RemoveAll();
@@ -367,25 +367,25 @@
                 };
                 modeFl.AddChidren(clickBtn);
                 clickBtn.MouseUpEventHandler += (sender, e) =>
-                 {
+                {
 
-                     LogicView.TipView.ShowConfrimTip(() =>
+                    LogicView.TipView.ShowConfrimTip(() =>
 
-                     {///鍐嶆纭
+                    {///鍐嶆纭
                         LogicView.TipView.ShowInputTip(true, async (str) =>
-                         {///纭鍙戦�佸懡浠�
+                        {///纭鍙戦�佸懡浠�
                             CommonPage.Loading.Start();
-                             try
-                             {
+                            try
+                            {
                                 ///xm
                                 var result = await UserCenter.DoorLock.DoorLockCommonInfo.SetNormallyOpenModeFuncAsync(Send.CurrentDoorLock);
-                                 if (!result)
-                                 {
-                                     LogicView.TipView.ShowFlashTip(Language.StringByID(MyInternationalizationString.openFailed));
-                                     return;
-                                 }
-                                 else
-                                 {
+                                if (!result)
+                                {
+                                    LogicView.TipView.ShowFlashTip(Language.StringByID(MyInternationalizationString.openFailed));
+                                    return;
+                                }
+                                else
+                                {
                                     ///鍥犱负鏈夊父寮�妯″紡涓嬫墠鍙互鍒涘缓澶辨晥閫昏緫锛�
                                     SkipView.GetLogicAll();//鍒犻櫎涔嬪墠鎵�鏈夊け鏁堥�昏緫
                                     var addResult = await SkipView.LockAddModifyLogic(int.Parse(str), Send.CurrentDoorLock);//娣诲姞涓�鏉″け鏁堥�昏緫
@@ -400,8 +400,8 @@
                                     logicId = addResult;
                                     timeValue = int.Parse(str);
                                     Send.CurrentDoorLock.IsDoorLockNormallyMode = true;
-                                    ModeView();
-                                    //娣诲姞App寮�鍚父寮�妯″紡鐨勫巻鍙茶褰�
+                                    ModeView();
+                                    //娣诲姞App寮�鍚父寮�妯″紡鐨勫巻鍙茶褰�
                                     UserCenter.HdlDeviceDoorLockLogic.Current.AddDoorHistoryLog(Send.CurrentDoorLock, 9001, string.Empty);
                                 }
                             }
@@ -434,7 +434,7 @@
         /// 璇诲彇鑷姩鍖栧垪琛ㄦ暟鎹紱
         /// </summary>
         /// <param name="yes"></param>
-        private async void Read( bool yes)
+        private async void Read(bool yes)
         {
             if (yes)
             {
@@ -511,7 +511,7 @@
                     selectedRow = logicRow;
                 };
                 a++;
-                ///鏄剧ず閫昏緫鍚嶇О鐨勬帶浠�
+                ///鏄剧ず閫昏緫鍚嶇О鐨勬帶浠�
                 var nameBtn = new Button
                 {
                     Height = Application.GetRealHeight(58),
@@ -575,7 +575,7 @@
                     TextColor = ZigbeeColor.Current.LogicBtnSaveTextColor,
                 };
                 logicRow.AddRightView(edit);
-               
+
                 ///鍒犻櫎
                 var del = new Button
                 {
@@ -628,19 +628,19 @@
                 {
                     var alert = new UserCenter.ShowMsgControl(UserCenter.ShowMsgType.Confirm,
                     Language.StringByID(MyInternationalizationString.doyouwanttodelete),
-                    Language.StringByID(MyInternationalizationString.confrim));
-                    alert.Show();
-                    alert.ConfirmClickEvent += () =>
+                    Language.StringByID(MyInternationalizationString.confrim));
+                    alert.Show();
+                    alert.ConfirmClickEvent += () =>
                     {
                         Common.Logic.SoneLogicList.Remove(logic);
                         //logicRow.Parent.RemoveFromParent();
                         fLayoutLogic.RemoveFromParent();
-                        Send.DelLogic(logic.LogicId);
+                        Send.DelLogic(logic.LogicId);
                     };
 
-                };
+                };
             }
         }
-     
+
     }
 }

--
Gitblit v1.8.0