From f26d7b01a57fdb53dbe58ad355e3c45e3ec06d60 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 26 二月 2021 16:14:02 +0800
Subject: [PATCH] 2021-2-26-1

---
 HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs |   29 ++++++++++++++++++-----------
 1 files changed, 18 insertions(+), 11 deletions(-)

diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/ReplicationView.cs b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs
similarity index 76%
rename from HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/ReplicationView.cs
rename to HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs
index 20accf8..fbebc91 100644
--- a/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/ReplicationView.cs
+++ b/HDL_ON/UI/UI2/4-PersonalCenter/PirDevice/View/ReplicationView.cs
@@ -3,25 +3,27 @@
 using Shared;
 using System.Collections.Generic;
 using System.Text;
-namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice
+namespace HDL_ON.UI.UI2.PersonalCenter.PirDevice.View
 {
-    public class ReplicationView : FrameLayout
+    public class ReplicationView
     {
-        public ReplicationView()
-        {
-        }
+        Dialog dialog = new Dialog();
+        /// <summary>
+        /// 
+        /// </summary>
         public void Show()
         {
-
             #region 鐣岄潰甯冨眬
+            dialog.BackgroundColor = CSS.CSS_Color.viewMiddle;
             PirDevice.View.TopView topView = new View.TopView();
             topView.topNameBtn.TextID = StringId.fuzhiyaokonggongnneg;
-            this.AddChidren(topView.FLayoutView());
-            topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { this.RemoveFromParent(); };
+            dialog.AddChidren(topView.FLayoutView());
+            topView.clickBackBtn.MouseUpEventHandler += (sender, e) => { dialog.Close();};
             FrameLayout frameLayout = new FrameLayout();
             frameLayout.Height = Application.GetRealHeight(667 - 64);
             frameLayout.Y = Application.GetRealHeight(64);
-            this.AddChidren(frameLayout);
+           // frameLayout.BackgroundColor = CSS.CSS_Color.textWhiteColor;
+            dialog.AddChidren(frameLayout);
             var textBtn = new Button
             {
                 Y = Application.GetRealHeight(24),
@@ -53,10 +55,15 @@
                 UnSelectedImagePath = "PirIcon/icon2.png",
             };
             frameLayout.AddChidren(icon2Btn);
+            dialog.Show();
             #endregion
 
         }
-
-      
+        /// <summary>
+        /// 绉婚櫎褰撳墠鐣岄潰
+        /// </summary>
+        public void RemView() {
+            dialog.Close();
+        }
     }
 }

--
Gitblit v1.8.0