From a4924de3136289d10cabbf2f61a228387d44ded7 Mon Sep 17 00:00:00 2001
From: gxc <guoxuecheng@guoxuechengdeMacBook-Pro.local>
Date: 星期四, 07 十一月 2019 13:48:36 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into DEV_GXC

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/DialogCommonForm.cs |   42 +++++++++++++++++++++++++++++++++++++-----
 1 files changed, 37 insertions(+), 5 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/DialogCommonForm.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/DialogCommonForm.cs
index 12af502..a5c1673 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/DialogCommonForm.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Form/Base/DialogCommonForm.cs
@@ -15,6 +15,14 @@
         /// bodyFrameLayout
         /// </summary>
         public FrameLayout bodyFrameLayout = null;
+        /// <summary>
+        /// 鐐瑰嚮鑳屾櫙鐨勬椂鍊欙紝鍏抽棴鐣岄潰
+        /// </summary>
+        public bool CloseFormByClickBack = true;
+        /// <summary>
+        /// 鍘熸潵鐨勬粦鍔ㄦ爣璇�
+        /// </summary>
+        private bool oldScrollEnabled = false;
 
         #endregion
 
@@ -24,18 +32,24 @@
         /// 鍒濆鍖栫晫闈㈡鏋�
         /// </summary>
         public override void InitForm()
-        {
+        {
+            this.oldScrollEnabled = UserView.HomePage.Instance.ScrollEnabled;
+            UserView.HomePage.Instance.ScrollEnabled = false;
+
             base.InitForm();
 
             bodyFrameLayout = new FrameLayout();
             bodyFrameLayout.BackgroundColor = UserCenterColor.Current.DialogBackColor;
             this.AddChidren(bodyFrameLayout);
 
-            bodyFrameLayout.MouseUpEventHandler += (sender, e) =>
+            if (CloseFormByClickBack == true)
             {
-                //鍏抽棴鑷韩
-                this.CloseForm();
-            };
+                bodyFrameLayout.MouseUpEventHandler += (sender, e) =>
+                {
+                    //鍏抽棴鑷韩
+                    this.CloseForm();
+                };
+            }
         }
 
         #endregion
@@ -70,5 +84,23 @@
         }
 
         #endregion
+
+        #region 鈻� 鍏抽棴鐣岄潰___________________________
+
+        /// <summary>
+        /// 鍏抽棴鐣岄潰
+        /// </summary>
+        public override void CloseForm()
+        {
+            if (this.oldScrollEnabled == true)
+            {
+                //濡傛灉瀹冨師鏉ュ氨鏄笉鍙互婊戝姩鐨勮瘽锛屼笉澶勭悊
+                UserView.HomePage.Instance.ScrollEnabled = true;
+            }
+
+            base.CloseForm();
+        }
+
+        #endregion
     }
 }

--
Gitblit v1.8.0