From 2029e64ec0491f7e511dc15bffaf821bfbabe2de Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 20 七月 2020 14:10:22 +0800
Subject: [PATCH] 上传一个很特别的新版本

---
 ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileContentForm.cs |   36 ++++++++++++++++++++++++++++++++++++
 1 files changed, 36 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileContentForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileContentForm.cs
index a05bea7..d44f2d0 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileContentForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/HideOption/HideOptionFileContentForm.cs
@@ -11,6 +11,11 @@
     {
         #region 鈻� 鍙橀噺澹版槑___________________________
 
+        /// <summary>
+        /// 瑙e瘑
+        /// </summary>
+        private bool decryptPassword = false;
+
         #endregion
 
         #region 鈻� 鍒濆鍖朹____________________________
@@ -26,6 +31,24 @@
 
             //鍒濆鍖栦腑閮ㄤ俊鎭�
             this.InitMiddleFrame(i_file);
+
+            var btnButton = new NormalViewControl(200, 69, true);
+            btnButton.Gravity = Gravity.CenterVertical;
+            btnButton.X = bodyFrameLayout.Width - Application.GetRealWidth(200) - ControlCommonResourse.XXLeft;
+            btnButton.TextColor = UserCenterColor.Current.TopLayoutTitleText;
+            btnButton.TextAlignment = TextAlignment.BottomRight;
+            btnButton.TextSize = 17;
+            btnButton.Text = "缈昏瘧";
+            topFrameLayout.AddChidren(btnButton);
+            btnButton.ButtonClickEvent += (sender, e) =>
+            {
+                if (this.decryptPassword == false)
+                {
+                    this.decryptPassword = true;
+                    //鍒濆鍖栦腑閮ㄤ俊鎭�
+                    this.InitMiddleFrame(i_file);
+                }
+            };
         }
 
         /// <summary>
@@ -34,6 +57,8 @@
         private void InitMiddleFrame(string i_file)
         {
             if (i_file == string.Empty) { return; }
+
+            this.ClearBodyFrame();
 
             if (i_file.EndsWith(".png") == true || i_file.EndsWith(".jpg") == true || i_file.EndsWith(".JPG") == true)
             {
@@ -59,6 +84,17 @@
         /// <param name="i_text"></param>
         public void SetTextContent(string textValue)
         {
+            if (this.decryptPassword == true)
+            {
+                var strArry = textValue.Split(new string[] { "\r\n" }, StringSplitOptions.RemoveEmptyEntries);
+
+                textValue = string.Empty;
+                foreach (var strtext in strArry)
+                {
+                    string value = UserCenterLogic.DecryptPassword(UserCenterResourse.FileEncryptKey, strtext);
+                    textValue += value + "\r\n";
+                }
+            }
             textValue = textValue.Replace(",", "\r\n");
             if (textValue.StartsWith("{") == true)
             {

--
Gitblit v1.8.0