From 4d14154c36ac5692aadc036eed97fb9f1c410e2a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期日, 23 五月 2021 14:46:03 +0800
Subject: [PATCH] Merge branch 'WJC' into temp-wxr

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
index 49bab2e..721151e 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/PirMain.cs
@@ -61,12 +61,7 @@
 
             };
             middFLayout.AddChidren(addDevice);
-            if (Pir.currPir.FunctioList.Count < 10)
-            {
-                //10涓仴鎺у櫒灏变細闅愯棌娣诲姞鍥炬爣
-                // middFLayout.AddChidren(addDevice);
-                addDevice.Visible = true;
-            }
+         
             #endregion
 
             #region 鐣岄潰鐐瑰嚮浜嬩欢
@@ -76,7 +71,7 @@
                     ////鍏抽棴鍒锋柊View锛�
                     vv.EndHeaderRefreshing();
 
-                    Method.GetControlList(this, () =>
+                    PirMethod.GetControlList(this, () =>
                     {
                         Application.RunOnMainThread(() =>
                         {
@@ -108,7 +103,7 @@
                     //1=绌鸿皟;2=鐢佃;3=椋庢墖;4=鏈洪《鐩�;5=DVD/EVD/VCD;6=鎶曞奖浠�;7=鑷畾涔�;
                     if (if_value == 7)
                     {
-                        Method method = new Method();
+                        PirMethod method = new PirMethod();
                         method.AddControl(this, (control) =>
                         {
                             //鎴愬姛鍚庣Щ闄�;
@@ -121,7 +116,7 @@
                     }
                     else
                     {
-                        if (if_value == 3 || if_value == 4 || if_value == 5 || if_value == 6)
+                        if (if_value == 6)
                         {
                             new TipPopView().FlashingBox(Language.StringByID(StringId.zanshibuzhichigaigongneng));
                             return;
@@ -148,13 +143,18 @@
             ///鍒濆鍖栫晫闈�
             UIView(vv);
         }
-
         /// <summary>
         /// 鍔犺浇UI鐣岄潰
         /// </summary>
         /// <param name="vv">涓婁笅婊戞帶浠�</param>
         private void UIView(VerticalRefreshLayout vv)
         {
+            if (Pir.currPir.FunctioList.Count < 10)
+            {
+                //10涓仴鎺у櫒灏变細闅愯棌娣诲姞鍥炬爣
+                // middFLayout.AddChidren(addDevice);
+                addDevice.Visible = true;
+            }
             vv.RemoveAll();
             #region 绾㈠瀹濆浘鏍� 鐗堟湰鍙� 鍚嶇О 鐘舵��
             FrameLayout fLayout = new FrameLayout
@@ -208,7 +208,7 @@
                     TipPopView tipPopView = new TipPopView();
                     tipPopView.TipBox(StringId.tip, text, (dialog) =>
                     {
-                        Method.ThreadSend(new Control { deviceId=control.deviceId}, (responsePackNew) =>
+                        PirMethod.ThreadSend(new Control { deviceId=control.deviceId}, (responsePackNew) =>
                         {
                             dialog.Close();
                             var function = Pir.currPir.FunctioList.Find((c) => c.sid == Function.sid);
@@ -313,7 +313,7 @@
                 {
                     if (tag)
                     {
-                        Method method = new Method();
+                        PirMethod method = new PirMethod();
                         method.ErrorShow(responsePackNew, "");
                     }
                 }
@@ -360,7 +360,7 @@
                 }
                 else
                 {
-                    Method method = new Method();
+                    PirMethod method = new PirMethod();
                     method.ErrorShow(responsePackNew, "");
                 }
             }, id, "鍝佺墝鍒楄〃");

--
Gitblit v1.8.0