From 16604a593202f2f87adf71abd57d036fe7da3b52 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期一, 18 十一月 2019 10:39:42 +0800
Subject: [PATCH] 同步了全部的代码

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressFormBar.cs |   35 +++++++++++++++++++++++++++--------
 1 files changed, 27 insertions(+), 8 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressFormBar.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressFormBar.cs
index 4d6dd4c..19f8af4 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressFormBar.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressFormBar.cs
@@ -58,6 +58,10 @@
         /// 鍘熸潵鐨勬粦鍔ㄦ爣璇�
         /// </summary>
         private bool oldScrollEnabled = false;
+        /// <summary>
+        /// 鍘熸潵鐨勯偅涓渾褰㈣繘搴︽潯鏄惁鍙
+        /// </summary>
+        private bool oldPrigressVisible = false;
 
         #endregion
 
@@ -80,6 +84,12 @@
             this.oldScrollEnabled = UserView.HomePage.Instance.ScrollEnabled;
             UserView.HomePage.Instance.ScrollEnabled = false;
             Shared.Common.CommonPage.BackKeyCanClick = false;
+            this.oldPrigressVisible = Common.CommonPage.Loading.Visible;
+            if (oldPrigressVisible == true)
+            {
+                //鍦嗗舰杩涘害鏉′复鏃跺叧闂�
+                Common.CommonPage.Loading.Hide();
+            }
 
             //瀹瑰櫒
             bodyFrameLayout = new FrameLayout();
@@ -172,7 +182,7 @@
         /// </summary>
         /// <param name="value">杩涘害鍊�,鍐呴儴浼氶櫎浠axValue</param>
         /// <param name="maxValue">鏈�澶у��</param>
-        public void SetValue2(decimal value, decimal maxValue)
+        public void SetValue(decimal value, decimal maxValue)
         {
             decimal result = value / maxValue;
             this.SetValueEx(result);
@@ -184,6 +194,10 @@
         /// <param name="value"></param>
         private void SetValueEx(decimal value)
         {
+            if (btnProgressBar == null)
+            {
+                return;
+            }
             HdlThreadLogic.Current.RunMain(() =>
             {
                 int width = (int)(value * ProRowWidth);
@@ -223,15 +237,20 @@
         /// </summary>
         public void Close()
         {
-            if (this.oldScrollEnabled == true)
-            {
-                //濡傛灉瀹冨師鏉ュ氨鏄笉鍙互婊戝姩鐨勮瘽锛屼笉澶勭悊
-                UserView.HomePage.Instance.ScrollEnabled = true;
-            }
-            Shared.Common.CommonPage.BackKeyCanClick = true;
-
             HdlThreadLogic.Current.RunMain(() =>
             {
+                if (this.oldScrollEnabled == true)
+                {
+                    //濡傛灉瀹冨師鏉ュ氨鏄笉鍙互婊戝姩鐨勮瘽锛屼笉澶勭悊
+                    UserView.HomePage.Instance.ScrollEnabled = true;
+                }
+                Shared.Common.CommonPage.BackKeyCanClick = true;
+                if (this.oldPrigressVisible == true)
+                {
+                    //濡傛灉鍘熸潵鐨勮繘搴︽潯鏄彲瑙佺殑璇�,杩樺師鍥炲幓
+                    Common.CommonPage.Loading.Start(Common.CommonPage.Loading.Text);
+                }
+
                 bodyFrameLayout?.RemoveFromParent();
                 bodyFrameLayout = null;
                 btnText = null;

--
Gitblit v1.8.0