From 5e5b950e83dff438e64ce7e088aaa31455091b0c Mon Sep 17 00:00:00 2001
From: JLChen <551775569@qq.com>
Date: 星期三, 07 七月 2021 14:57:42 +0800
Subject: [PATCH] 2021-7-7-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddButton.cs |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddButton.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddButton.cs
index 01a45e5..50fd91a 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddButton.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/AddButton.cs
@@ -113,6 +113,12 @@
             ///涓嬩竴姝ョ殑鐐瑰嚮浜嬩欢
             saveBtn.MouseUpEventHandler += (sender, e) =>
             {
+                if (control.status.Count>29) {
+                    ///瓒呭嚭30涓孩澶栧疂鍐呭瓨婊′簡浼氬嚭鐜板紓甯�
+                    new PirMethod().ErrorShow(null, "娣诲姞鎸夐挳瓒呭嚭30涓�");
+                    return;
+                }
+
                 var texts = editText.Text.Trim();
                 if (string.IsNullOrEmpty(editText.Text))
                 {
@@ -151,7 +157,7 @@
                         //绉婚櫎娣诲姞鎸夐挳鐣岄潰
                         this.RemoveFromParent();
                         //绉婚櫎涔嬪墠鍙兘瀛樺湪鐨勭晫闈�
-                        Method.RemoveView("AddControl");
+                        PirMethod.RemoveView("AddControl");
                         //鍔犺浇鏁版嵁鐣岄潰
                         AddControl addControl = new AddControl();
                         MainPage.BasePageView.AddChidren(addControl);
@@ -161,7 +167,7 @@
                     else
                     {
                         replication.RemView();
-                        Method method = new Method();
+                        PirMethod method = new PirMethod();
                         method.ErrorShow(null,"娣诲姞澶辫触");
                     }
 
@@ -176,7 +182,7 @@
         public override void RemoveFromParent()
         {
             //鍒锋柊鎸囧畾鐣岄潰
-            Method.RefreshView("PirMain");
+            PirMethod.RefreshView("PirMain");
             base.RemoveFromParent();
         }
     }

--
Gitblit v1.8.0