From 780b8b391bc92fba473291ec8151df5860749408 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 23 二月 2021 17:53:21 +0800
Subject: [PATCH] 2021-2-23-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/BrandListView.cs |   43 ++++++++++++++++---------------------------
 1 files changed, 16 insertions(+), 27 deletions(-)

diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/EmptyClass.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/BrandListView.cs
similarity index 90%
rename from HDL_ON/UI/UI2/3-Intelligence/Automation/EmptyClass.cs
rename to HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/BrandListView.cs
index 2293a25..1d0bfe1 100644
--- a/HDL_ON/UI/UI2/3-Intelligence/Automation/EmptyClass.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/BrandListView.cs
@@ -4,9 +4,9 @@
 using System.Collections.Generic;
 using System.Text;
 
-namespace HDL_ON.UI.UI2.Intelligence.Automation
+namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice.View
 {
-    public class EmptyClass : FrameLayout
+    public class BrandListView : FrameLayout
     {
         /// <summary>
         /// 
@@ -14,10 +14,8 @@
         /// <param name="list">琛ㄧず璇ュ垪琛ㄥ厓绱燗-Z瀛楁瘝绛涢�夋樉绀哄嚭鏉�</param>
         /// <param name="list6">琛ㄧず璇ュ垪琛ㄥ厓绱犳樉绀哄湪list鍓嶉潰(璇ュ垪琛ㄥ厓绱犱笉鍋欰-Z瀛楁瘝绛涢��),娌℃湁鍙互涓簂ist6=null</param>
         /// <param name="action">杩斿洖閫変腑鏂囨湰</param>
-        public void Show(List<string> list, List<string> list6, Action<string> action) 
+        public void Show(List<string> list, List<string> list6, Action<string> action)
         {
-
-
             //string text = "30";
             //byte[] bytes = new byte[text.Length / 2];
             //for (int i = 0, j = 0; i < bytes.Length; j += 2, i++)
@@ -27,8 +25,6 @@
             //}
             ////鎶奲yte鏁扮粍杞崲鎴愭枃瀛�
             //string str = System.Text.Encoding.UTF8.GetString(bytes);
-
-
             var frameLayout = new FrameLayout
             {
                 BackgroundColor = CSS.CSS_Color.viewTop,
@@ -59,7 +55,14 @@
                 UnSelectedImagePath = "LogicIcon/back.png",
             };
             frameLayout.AddChidren(backBtn);
-            backBtn.MouseUpEventHandler += (sen, e) =>
+            var clickBackBtn = new Button
+            {
+                Width = Application.GetRealWidth(12 + 16 + 20),
+                Height = Application.GetRealWidth(20 + 20),
+                Y = Application.GetRealHeight(32),
+            };
+            frameLayout.AddChidren(clickBackBtn);
+            clickBackBtn.MouseUpEventHandler += (sen, e) =>
             {
                 this.RemoveFromParent();
             };
@@ -86,16 +89,6 @@
             };
             this.AddChidren(fram);
 
-
-            //var list11 = new List<string> {
-            //   "鐖变綘", "鍝庡懄","鍩冨強","鍝堝紬鎹㈠3鍝堝紬", "鐖卞痉鍗庡v","淇哄嚑涓柉浜�",
-            //    "鎷滀簡", "宸村+", "鐧惧か",  "鐧惧悎鍦扮悊璇句綘鎵撶畻", "涓嶅害鑰侀浼忔灔", "姣斿埌涔濈偣",
-            //    "杞︾珯","娴嬭瘯","姝ゅ湴", "鎵嶇湅瑙佸ソ寰楀揩","鍚冭蒋楗�","浠庣湅瑙佷簩鍗佸",
-            //   "绛夊緟鏈轰細鍚�","鐨勫鎴�", "澶氬枬鐐�", "鐧昏鍝︾劧鍚�", "鎵撶數璇�",
-            //     "鎭╄偆闇滅湅灏辩湅浜�", "楗挎os","鎭堕瓟鍩�","鍎跨鑱斿姩", "鎭╁叚棰楀瓙寮规媺鎷夎¥娲楁尽浜�","鍙戝ぇ瀛︾敓鍙戝彂",
-            //    "鐪熷帀瀹砳鍙戝灏�", "鐭ラ亾浣犱粯娆句簡鍙�", "灏厭鍥炲",  "鏀硅繘鐨勮瘽", "澶╁ぉ閫熷害鍥炵瓟", "澶ソ浜嗗紑杞�",
-            //    "鍑忚偉鐨勭湅杩�","妗″嚭鍙e閭�","濡傛灉瑙夊緱", "寰堣垝鏈嶇殑","鍚冭蒋楗�","浠庣湅瑙佷簩鍗佸",
-            //   "榫欏嵎椋庝簭澶у彂","鍘诲ソ鐪�", "澶氬枬鐐�", "濂芥氮璐瑰ソ", "鎵撶數璇�"};
             if (list == null)
             {
                 list = new List<string>();
@@ -105,7 +98,6 @@
                 list6 = new List<string>();
             }
             var list1 = GetDateList(list);
-            list1.Add("1");
             list1.InsertRange(0, list6);
 
 
@@ -140,7 +132,7 @@
                 Width = Application.GetRealWidth(10 + 6),
             };
             fram.AddChidren(a_zFra);
-            var list2 = GetList();  
+            var list2 = GetList();
             for (int i = 0; i < list2.Count; i++)
             {
 
@@ -183,7 +175,7 @@
             }
             #endregion
 
-            RefreshLayout(vv, list1,action);
+            RefreshLayout(vv, list1, action);
 
 
 
@@ -195,7 +187,7 @@
         /// </summary>
         /// <param name="vv">鐖舵帶浠�</param>
         /// <param name="list">鏄剧ず鍒楄〃</param>
-        private void RefreshLayout(VerticalScrolViewLayout vv, List<string> list,Action<string> action)
+        private void RefreshLayout(VerticalScrolViewLayout vv, List<string> list, Action<string> action)
         {
             vv.RemoveAll();
             foreach (var str in list)
@@ -236,8 +228,8 @@
                 clickBtn.MouseUpEventHandler += (sen, e) =>
                 {
                     //鎵惧埌绱㈠紩鍊�
-                    var index = list.IndexOf(clickBtn.Tag.ToString());
-
+                    //var index = list.IndexOf();
+                    action(clickBtn.Tag.ToString());
                     this.RemoveFromParent();
                 };
 
@@ -261,7 +253,6 @@
                 return false;
             }
         }
-
         /// <summary>
         /// 鑾峰彇鏄剧ず鍒楄〃
         /// </summary>
@@ -300,7 +291,6 @@
             }
             return list;
         }
-
         /// <summary>
         /// 鑾峰彇A-Z瀛楁瘝鍒楄〃
         /// </summary>
@@ -321,7 +311,6 @@
             }
             return list;
         }
-
         /// <summary>
         /// 鑾峰彇姹夊瓧棣栧瓧姣�
         /// </summary>

--
Gitblit v1.8.0