From c8181d684c1e242c94b449e00dcd2c138c6587d3 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 18 三月 2021 17:20:32 +0800
Subject: [PATCH] 2021-3-18-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs
index fbebc91..32e80e8 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs
@@ -7,23 +7,27 @@
 {
     public class ReplicationView
     {
-        Dialog dialog = new Dialog();
+        FrameLayout fLayout = new FrameLayout
+        {
+            Height = Application.GetRealHeight(667),
+            BackgroundColor = CSS.CSS_Color.viewMiddle,
+        };
         /// <summary>
         /// 
         /// </summary>
-        public void Show()
+        public void Show(FrameLayout frame)
         {
             #region 鐣岄潰甯冨眬
-            dialog.BackgroundColor = CSS.CSS_Color.viewMiddle;
+            frame.AddChidren(fLayout);
             PirDevice.View.TopView topView = new View.TopView();
             topView.topNameBtn.TextID = StringId.fuzhiyaokonggongnneg;
-            dialog.AddChidren(topView.FLayoutView());
-            topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { dialog.Close();};
+            fLayout.AddChidren(topView.FLayoutView());
+            topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { RemView(); };
             FrameLayout frameLayout = new FrameLayout();
             frameLayout.Height = Application.GetRealHeight(667 - 64);
             frameLayout.Y = Application.GetRealHeight(64);
-           // frameLayout.BackgroundColor = CSS.CSS_Color.textWhiteColor;
-            dialog.AddChidren(frameLayout);
+            // frameLayout.BackgroundColor = CSS.CSS_Color.textWhiteColor;
+            fLayout.AddChidren(frameLayout);
             var textBtn = new Button
             {
                 Y = Application.GetRealHeight(24),
@@ -55,15 +59,15 @@
                 UnSelectedImagePath = "PirIcon/icon2.png",
             };
             frameLayout.AddChidren(icon2Btn);
-            dialog.Show();
             #endregion
 
         }
         /// <summary>
         /// 绉婚櫎褰撳墠鐣岄潰
         /// </summary>
-        public void RemView() {
-            dialog.Close();
+        public void RemView()
+        {
+            fLayout.RemoveFromParent();
         }
     }
 }

--
Gitblit v1.8.0