From c7df85937f73fb347ee0b19e9c052d2d00a6df6c Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 18 九月 2020 13:58:19 +0800
Subject: [PATCH] 新版本

---
 ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs |   28 +++++++++++++++++++++++++---
 1 files changed, 25 insertions(+), 3 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs
index 5cd4dcd..d3be37f 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/ProgressRowBar.cs
@@ -12,6 +12,10 @@
         #region 鈻� 鍙橀噺澹版槑___________________________
 
         /// <summary>
+        /// 杩涘害鏉¤兘鍚﹀線鍥炶蛋(榛樿鍙互)
+        /// </summary>
+        public bool ProgressBarGoback = true;
+        /// <summary>
         /// 浼氱Щ鍔ㄧ殑杩涘害鏉�
         /// </summary>
         private FrameLayout btnProgressBar = null;
@@ -31,6 +35,22 @@
         /// 妯″紡鍖哄垎
         /// </summary>
         private int m_ModeDiv = -1;
+
+        /// <summary>
+        /// 杩涘害鏉℃槸鍚﹀彲瑙�
+        /// </summary>
+        public new bool Visible
+        {
+            get { return base.Visible; }
+            set
+            {
+                if (this.frameProgressBack != null)
+                {
+                    this.frameProgressBack.Visible = value;
+                }
+                base.Visible = value;
+            }
+        }
 
         #endregion
 
@@ -139,14 +159,16 @@
         /// <param name="value"></param>
         private void SetValueEx(decimal value)
         {
-            if (btnProgressBar == null || this.m_ModeDiv != 1 || value > 1)
+            if (btnProgressBar == null || this.m_ModeDiv != 1)
             {
                 return;
             }
+            if (value > 1) { value = 1; }
+
             HdlThreadLogic.Current.RunMain(() =>
             {
                 int width = (int)(value * this.Width);
-                if (btnProgressBar.Width >= width)
+                if (this.ProgressBarGoback == false && btnProgressBar.Width >= width)
                 {
                     //涓嶈兘璁╄繘搴︽潯寰�鍥炶蛋
                     return;
@@ -157,7 +179,7 @@
                     //鏂囨湰鏄剧ず
                     btnProgressTextView.Text = ((int)(value * 100)) + "%";
                     //鏂囨湰鏄剧ず鐨勯偅涓浘鐗囨绉诲姩
-                    this.frameProgressBack.X = ControlCommonResourse.XXLeft + btnProgressBar.Right - frameProgressBack.Width / 2;
+                    this.frameProgressBack.X = this.X + btnProgressBar.Right - frameProgressBack.Width / 2;
                 }
             });
         }

--
Gitblit v1.8.0