From e37fcd412d88060132067ed303bdf1902b485f70 Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Wed, 12 Jan 2022 18:04:16 +0000 Subject: [PATCH] #310 git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32727 --- client/DxPlay/Controls/VideoSpeedTrackbar.cs | 25 ++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 client/DxPlay/Controls/VideoSpeedTrackbar.cs diff --git a/client/DxPlay/Controls/VideoSpeedTrackbar.cs b/client/DxPlay/Controls/VideoSpeedTrackbar.cs new file mode 100644 index 00000000..0e2290ad --- /dev/null +++ b/client/DxPlay/Controls/VideoSpeedTrackbar.cs @@ -0,0 +1,25 @@ +using System.Windows.Forms; + +namespace DxPlay.Controls +{ + public class VideoSpeedTrackbar: TrackBar + { + private float[] mAvailableSpeeds= { + 0.25f, 0.5f, 1f, 2f, 3f, 5f + }; + + private float currentSpeed; + public float[] AvailableSpeeds + { + get { return mAvailableSpeeds; } + set { mAvailableSpeeds= value; } + } + + public float CurrentSpeed { get; set; } + public VideoSpeedTrackbar() { + this.Minimum = 1; + this.Maximum = 5; + this.Value = 3; + } + } +} -- 2.54.0