From 6b5f23413ceac72ad97d354e658798c8a422f556 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 16 三月 2021 16:52:17 +0800
Subject: [PATCH] 2021-3-26-3

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs |   70 +++++++++++++++++------------------
 1 files changed, 34 insertions(+), 36 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs
index c31a4b1..6ea0cc1 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddControlComplete.cs
@@ -65,7 +65,7 @@
                 TextAlignment = TextAlignment.Center,
             };
             fLayout.AddChidren(text1Btn);
-            //鍙埌鍒嗙被-鍔熻兘-鐢靛櫒鎿嶄綔浣跨敤
+            //鍙埌鍒嗙被-鍔熻兘-鎿嶄綔浣跨敤
             Button text2Btn = new Button
             {
                 Width = Application.GetRealWidth(375 - 32),
@@ -90,13 +90,41 @@
             this.AddChidren(namePatchView.FLayoutView());
             namePatchView.btnText1.TextID = StringId.yaokongqimingcheng;
             namePatchView.btnText2.Text = control.name;
-            namePatchView.btnClick.MouseUpEventHandler += (sender,e) => {
+          
+            //鎵�灞炲尯鍩�
+            View.PatchView quyuPatchView = new View.PatchView();
+            quyuPatchView.frameLayout.Y = namePatchView.frameLayout.Bottom;
+            this.AddChidren(quyuPatchView.FLayoutView());
+            quyuPatchView.btnText1.TextID = StringId.suoshuquyu;
+            quyuPatchView.btnText2.Text=Intelligence.Automation.LogicMethod.GetGetRoomName(function);
+
+            //缁х画娣诲姞
+            Button addBtn = new Button
+            {
+                Y = quyuPatchView.frameLayout.Bottom + Application.GetRealHeight(125),
+                X = Application.GetRealWidth(16),
+                Width = Application.GetRealWidth(375 - 32),
+                Height = Application.GetRealHeight(20),
+                TextID = StringId.jixutianjia,
+                TextSize = TextSize.text14,
+                TextColor = CSS.CSS_Color.textConfirmColor,
+                TextAlignment = TextAlignment.Center,
+            };
+            this.AddChidren(addBtn);
+            //瀹屾垚
+            View.SaveView saveView = new View.SaveView();
+            this.AddChidren(saveView.FLayoutView());
+            saveView.frameLayout.SetCornerWithSameRadius(Application.GetRealHeight(24), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
+            #endregion
+            #region  鐣岄潰鐐瑰嚮浜嬩欢
+            //閬ユ帶鍣ㄥ悕绉扮偣鍑讳簨浠�
+            namePatchView.btnClick.MouseUpEventHandler += (sender, e) => {
 
                 List<string> list = new List<string>();
 
-                for (int i = 0; i < Pir.currPir.FunctioList.Count; i++)
+                for (int i = 0; i < PirDevice.Pir.currPir.FunctioList.Count; i++)
                 {
-                    list.Add(Pir.currPir.FunctioList[i].name);
+                    list.Add(PirDevice.Pir.currPir.FunctioList[i].name);
                 }
                 Method method = new Method();
                 method.EditControlName(StringId.editName, list, control.name, (name, view) =>
@@ -127,7 +155,7 @@
                                 else
                                 {
                                     Method methodError = new Method();
-                                    methodError.ErrorShow(responsePackNew,"");
+                                    methodError.ErrorShow(responsePackNew, "");
                                 }
 
                             });
@@ -139,12 +167,7 @@
 
                 }, () => { });
             };
-            //鎵�灞炲尯鍩�
-            View.PatchView quyuPatchView = new View.PatchView();
-            quyuPatchView.frameLayout.Y = namePatchView.frameLayout.Bottom;
-            this.AddChidren(quyuPatchView.FLayoutView());
-            quyuPatchView.btnText1.TextID = StringId.suoshuquyu;
-            quyuPatchView.btnText2.Text=Intelligence.Automation.LogicMethod.GetGetRoomName(function);
+            //鎵�灞炲尯鍩熺偣鍑讳簨浠�
             quyuPatchView.btnClick.MouseUpEventHandler += (sender, e) =>
             {
                 Method method = new Method();
@@ -154,31 +177,6 @@
                     quyuPatchView.btnText2.Text = Intelligence.Automation.LogicMethod.GetGetRoomName(function);
                 });
             };
-
-
-            //缁х画娣诲姞
-            Button addBtn = new Button
-            {
-                Y = quyuPatchView.frameLayout.Bottom + Application.GetRealHeight(125),
-                X = Application.GetRealWidth(16),
-                Width = Application.GetRealWidth(375 - 32),
-                Height = Application.GetRealHeight(20),
-                TextID = StringId.jixutianjia,
-                TextSize = TextSize.text14,
-                TextColor = CSS.CSS_Color.textConfirmColor,
-                TextAlignment = TextAlignment.Center,
-            };
-            this.AddChidren(addBtn);
-            //瀹屾垚
-            View.SaveView saveView = new View.SaveView();
-            this.AddChidren(saveView.FLayoutView());
-            saveView.frameLayout.SetCornerWithSameRadius(Application.GetRealHeight(24), HDLUtils.RectCornerTopLeft | HDLUtils.RectCornerTopRight);
-            #endregion
-            #region  鐣岄潰鐐瑰嚮浜嬩欢
-            //閬ユ帶鍣ㄥ悕绉扮偣鍑讳簨浠�
-            namePatchView.btnClick.MouseUpEventHandler += (sender, e) => { };
-            //鎵�灞炲尯鍩熺偣鍑讳簨浠�
-            quyuPatchView.btnClick.MouseUpEventHandler += (sender, e) => { };
             //缁х画娣诲姞鐐瑰嚮浜嬩欢
             addBtn.MouseUpEventHandler += (sender, e) =>
             {

--
Gitblit v1.8.0