From 2d6787d9dedca3553ccd9ae5eb1bc7e52d2608e2 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期二, 16 三月 2021 16:44:33 +0800
Subject: [PATCH] 3.

---
 HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddThirdPartyBrandListpage.cs |   21 ++++++++++++++++++---
 1 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddThirdPartyBrandListpage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddThirdPartyBrandListpage.cs
index 9841ea0..f73971c 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddThirdPartyBrandListpage.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/AddThirdPartyBrandListpage.cs
@@ -10,10 +10,11 @@
     {
         FrameLayout bodyView;
         VerticalRefreshLayout contentView;
-        List<IntegratedBrand> brandList = new List<IntegratedBrand>();
-        public AddThirdPartyBrandListpage()
+        List<IntegratedBrand> brandList;
+        public AddThirdPartyBrandListpage(List<IntegratedBrand> list)
         {
             bodyView = this;
+            brandList = list;
         }
 
         public void LoadPage()
@@ -61,7 +62,6 @@
                     Button btnLine = new Button()
                     {
                         X = Application.GetRealWidth(56),
-                        Y = Application.GetRealHeight(49),
                         Width = Application.GetRealWidth(303),
                         Height = 1,
                         BackgroundColor = CSS_Color.DividingLineColor,
@@ -102,6 +102,13 @@
                 row.AddChidren(btnName);
                 //涓嬭浇绗笁鏂瑰搧鐗宨con
                 ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.brandIcon, btnIcon);
+
+                btnName.MouseUpEventHandler = (sender, e) => {
+                    var page = new AddDevciePage(brand);
+                    MainPage.BasePageView.AddChidren(page);
+                    page.LoadPage();
+                    MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1;
+                };
             }
 
         }
@@ -134,5 +141,13 @@
                 }
             }) { IsBackground = true }.Start();
         }
+        /// <summary>
+        /// 璺宠浆娣诲姞璁惧鐣岄潰
+        /// </summary>
+        /// <param name="bandType">鍝佺墝绫诲瀷</param>
+        void SkipPage_AddDevice()
+        {
+        
+        }
     }
 }
\ No newline at end of file

--
Gitblit v1.8.0