From 1a4b95a7ebef71838bd3eda2c22056bbf0db65ec Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期五, 10 一月 2020 16:39:54 +0800
Subject: [PATCH] 2019阶段备份

---
 Shared.IOS/UI/ArcScaleSeekBar.cs |   24 ++++--------------------
 1 files changed, 4 insertions(+), 20 deletions(-)

diff --git a/Shared.IOS/UI/ArcScaleSeekBar.cs b/Shared.IOS/UI/ArcScaleSeekBar.cs
index 2847059..7fe9b05 100644
--- a/Shared.IOS/UI/ArcScaleSeekBar.cs
+++ b/Shared.IOS/UI/ArcScaleSeekBar.cs
@@ -1,5 +1,4 @@
 using System;
-//using Shared.I;
 using Shared.IOS.TBL;
 
 
@@ -9,7 +8,7 @@
     /// <summary>
     /// ArcScaleSeekBar 绌鸿皟 鍒诲害鍦嗗姬鎺т欢
     /// </summary>
-    public class ArcScaleSeekBar : View
+    public class ArcScaleSeekBar : BaseSeekBar
     {
         /// <summary>
         ///  褰撳墠瑙嗗浘
@@ -35,8 +34,6 @@
         {
             mHDLArcScaleSeekBar = new HDLArcScaleSeekBar
             {
-                //Frame = new CoreGraphics.CGRect(0, 0, this.Width, this.Height),
-                //mHDLArcScaleSeekBar.Frame = new CoreGraphics.CGRect(0, 0, 1024, 1024);
                 MProgressChangedDelegate = new OnProgressChangeListener(this)
             };
 
@@ -64,8 +61,6 @@
             {
                 base.Width = value;
                 RefreshFrame();
-                //mHDLArcScaleSeekBar.InitWithFrameArc(new CoreGraphics.CGRect(base.X, base.Y, base.Width, base.Height));
-
             }
         }
 
@@ -83,7 +78,6 @@
             {
                 base.Height = value;
                 RefreshFrame();
-
             }
         }
 
@@ -100,8 +94,6 @@
             {
                 base.X = value;
                 RefreshFrame();
-                //mHDLArcScaleSeekBar.InitWithFrameArc(new CoreGraphics.CGRect(base.X, base.Y, base.Width, base.Height));
-
             }
         }
 
@@ -119,8 +111,6 @@
             {
                 base.Y = value;
                 RefreshFrame();
-                //mHDLArcScaleSeekBar.InitWithFrameArc(new CoreGraphics.CGRect(base.X, base.Y, base.Width, base.Height));
-
             }
         }
 
@@ -175,10 +165,8 @@
             {
                 mHDLArcScaleSeekBar.SetProgress(value);
             }
-
             get
             {
-
                 return (int)mHDLArcScaleSeekBar.MProgress;
             }
         }
@@ -200,17 +188,15 @@
 
             var start = UIKit.UIColor.FromRGBA(r, g, b, a);
 
-
             byte r2, g2, b2, a2;
             r2 = (byte)(endColor / 256 / 256 % 256);
             g2 = (byte)(endColor / 256 % 256);
             b2 = (byte)(endColor % 256);
             a2 = (byte)(endColor / 256 / 256 / 256 % 256);
-
             var end = UIKit.UIColor.FromRGBA(r2, g2, b2, a2);
 
             mHDLArcScaleSeekBar.SetProgressBarColors(start, end);
-
+            mHDLArcScaleSeekBar.SetNeedsDisplay();
         }
 
         /// <summary>
@@ -234,7 +220,6 @@
         {
             set
             {
-
                 byte r, g, b, a;
                 r = (byte)(value / 256 / 256 % 256);
                 g = (byte)(value / 256 % 256);
@@ -242,8 +227,6 @@
                 a = (byte)(value / 256 / 256 / 256 % 256);
 
                 mHDLArcScaleSeekBar.MProgressTextColor = UIKit.UIColor.FromRGBA(r, g, b, a);
-                //mHDLArcScaleSeekBar.SetProgressTextColor(UIKit.UIColor.FromRGBA(r,  g, b, a));
-
             }
         }
 
@@ -255,7 +238,6 @@
         {
             set
             {
-                //set => mHDLArcScaleSeekBar.SetProgressTextSize(value);
                 mHDLArcScaleSeekBar.MProgressTextSize = value;
             }
 
@@ -313,6 +295,7 @@
 
             public override void OnProgressChanged(int mProgress)
             {
+                if (_ArcScaleSeekBar.IsProgressChangeDelay()) return;
                 _ArcScaleSeekBar.OnProgressChangedEvent?.Invoke(this, mProgress);
             }
 
@@ -323,6 +306,7 @@
 
             public override void OnStopTrackingTouch(int mProgress)
             {
+                _ArcScaleSeekBar.OnProgressChangedEvent?.Invoke(this, mProgress);
                 _ArcScaleSeekBar.OnStopTrackingTouchEvent?.Invoke(this, mProgress);
             }
         }

--
Gitblit v1.8.0