From d9a936f7ec50dc04c8786b9a661a0890ade52262 Mon Sep 17 00:00:00 2001
From: wei <kaede@kaededeMacBook-Air.local>
Date: 星期六, 28 十一月 2020 19:41:07 +0800
Subject: [PATCH] 20201128

---
 HDL_ON/UI/UI0-Public/TopViewDiv.cs |   38 +++++++++++++++++++++++++++++++++-----
 1 files changed, 33 insertions(+), 5 deletions(-)

diff --git a/HDL_ON/UI/UI0-Public/TopViewDiv.cs b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
index b274695..d561905 100644
--- a/HDL_ON/UI/UI0-Public/TopViewDiv.cs
+++ b/HDL_ON/UI/UI0-Public/TopViewDiv.cs
@@ -50,12 +50,12 @@
         /// TopViewDiv
         /// </summary>
         /// <param name="frame">鐖舵帶浠�</param>
-        /// <param name="str">鏍囬</param>
+        /// <param name="title">鏍囬</param>
         /// <param name="needClose">鏄惁闇�瑕佸叧闂〉闈�</param>
-        public TopViewDiv(FrameLayout frame, string str, bool needClose)
+        public TopViewDiv(FrameLayout frame, string title, bool needClose)
         {
             baseView = frame;
-            title = str;
+            this.title = title;
             this.needClose = needClose;
         }
 
@@ -87,13 +87,19 @@
             };
             baseView.AddChidren(contentView);
 
-            btnBack = new Button()
+            Button btnBackIcon = new Button()
             {
                 X = Application.GetRealWidth(10),
                 Y = Application.GetRealHeight(29),
                 Width = Application.GetRealWidth(40),
                 Height = Application.GetRealWidth(28),
                 UnSelectedImagePath = "Public/BackIcon.png",
+            };
+            baseView.AddChidren(btnBackIcon);
+
+            btnBack = new Button()
+            {
+                Width = Application.GetRealWidth(50),
             };
             baseView.AddChidren(btnBack);
 
@@ -124,6 +130,28 @@
             LoadTopView();
         }
 
+        public void LoadTopView_RoomTop(Action backAction ,Action editAction)
+        {
+            this.backAction = backAction;
+
+            LoadTopView();
+
+            var btnSetting = new Button()
+            {
+                X = Application.GetRealWidth(337),
+                Y = Application.GetRealHeight(29),
+                Width = Application.GetMinRealAverage(28),
+                Height = Application.GetMinRealAverage(28),
+                UnSelectedImagePath = "Public/FuncInfoSetIcon.png",
+            };
+            contentView.AddChidren(btnSetting);
+
+            btnSetting.MouseUpEventHandler = (sender, e) =>
+            {
+                editAction();
+            };
+        }
+
         /// <summary>
         /// 鍚慺ramelayout娣诲姞椤堕儴鍖哄煙,鎷ユ湁閰嶇疆鍥炬爣鎸夐挳
         /// </summary>
@@ -145,7 +173,7 @@
             };
             contentView.AddChidren(btnSetting);
 
-            btnSetting.MouseUpEventHandler += (sender, e) =>
+            btnSetting.MouseUpEventHandler = (sender, e) =>
             {
                 var infoView = new FunctionBaseInfoSetPage(function, action);
                 MainPage.BasePageView.AddChidren(infoView);

--
Gitblit v1.8.0