From 5986f63b75bd81c6cef262c670e9251c038cbf5d Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期二, 17 十二月 2019 17:21:07 +0800 Subject: [PATCH] 合并一个版本 --- ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs index 3af1925..a293155 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/CommonBase/Controls/CompoundControls/SeekBarControl.cs @@ -49,6 +49,14 @@ /// 杩涘害鍊兼敼鍙�,濡傛灉瑕佽缃垵濮嬭繘搴﹀��,姝ゅ彉閲忚鍦ㄨ缃垵濮嬭繘搴﹀�间箣鍓嶈繘琛岃缃�(绗竴涓弬鏁�0:婊戝姩鐨勬椂鍊�,1:鎵嬫寚寮硅捣鐨勬椂鍊�) /// </summary> public Action<int, int> ProgressChangedEvent = null; + /// <summary> + /// 杩涘害鏉′簨浠剁殑瑙﹀彂鏃堕棿闂撮殧(榛樿娌℃湁闂撮殧) + /// </summary> + public int EventWaitTime = -1; + /// <summary> + /// 鍓嶅洖鏃堕棿 + /// </summary> + private DateTime oldTime = DateTime.Now; #endregion @@ -92,6 +100,13 @@ this.OnProgressChangedEvent -= this.MyProgressChangedEvent; return; } + //鏃堕棿闂撮殧 + if (EventWaitTime != -1) + { + if ((DateTime.Now - oldTime).TotalMilliseconds < EventWaitTime) { return; } + oldTime = DateTime.Now; + } + this.ProgressChangedEvent(0, value); } @@ -107,6 +122,7 @@ this.OnStopTrackingTouchEvent -= this.MyStopTrackingTouchEvent; return; } + //寮硅捣浜嬩欢涓嶉渶瑕佸垽鏂椂闂� this.ProgressChangedEvent(1, value); } -- Gitblit v1.8.0