From 175713d87353e45dcc8824a0e97d9a7e234e789b Mon Sep 17 00:00:00 2001 From: Sweidan Omar Date: Thu, 13 Jan 2022 07:54:53 +0000 Subject: [PATCH] #310 git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C32739 --- .../Controls/PlayerControls.Designer.cs | 33 ++++++++++--------- client/DxPlay/PlayerForm.cs | 4 --- 2 files changed, 17 insertions(+), 20 deletions(-) diff --git a/client/DxPlay/Controls/PlayerControls.Designer.cs b/client/DxPlay/Controls/PlayerControls.Designer.cs index 2cbc4d84..b5e4204a 100644 --- a/client/DxPlay/Controls/PlayerControls.Designer.cs +++ b/client/DxPlay/Controls/PlayerControls.Designer.cs @@ -47,9 +47,9 @@ this.btnStop = new MaestroShared.Controls.NoFocusCueButton(); this.btnStepForward = new MaestroShared.Controls.NoFocusCueButton(); this.btnForward = new MaestroShared.Controls.NoFocusCueButton(); + this.lblPlaySpeed = new System.Windows.Forms.Label(); this.logoPanel = new System.Windows.Forms.Panel(); this.playSpeed = new DxPlay.Controls.VideoSpeedTrackbar(); - this.lblPlaySpeed = new System.Windows.Forms.Label(); this.mainPanel.SuspendLayout(); this.timecodePanel.SuspendLayout(); this.controlsPanel.SuspendLayout(); @@ -127,8 +127,8 @@ // // lbCurrentTC // - this.lbCurrentTC.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) + this.lbCurrentTC.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.lbCurrentTC.BackColor = System.Drawing.Color.Transparent; this.lbCurrentTC.Font = new System.Drawing.Font("Calibri", 16F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(238))); @@ -362,16 +362,25 @@ this.btnForward.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageBeforeText; this.btnForward.UseVisualStyleBackColor = false; // + // lblPlaySpeed + // + this.lblPlaySpeed.AutoSize = true; + this.lblPlaySpeed.Location = new System.Drawing.Point(705, 0); + this.lblPlaySpeed.Name = "lblPlaySpeed"; + this.lblPlaySpeed.Size = new System.Drawing.Size(158, 17); + this.lblPlaySpeed.TabIndex = 27; + this.lblPlaySpeed.Text = "Lejátszási sebesség: 1x"; + // // logoPanel // this.logoPanel.AutoSize = true; this.logoPanel.BackgroundImage = global::DxPlay.Properties.Resources.bs_user_logo; this.logoPanel.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; this.logoPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.logoPanel.Location = new System.Drawing.Point(874, 0); + this.logoPanel.Location = new System.Drawing.Point(873, 0); this.logoPanel.Margin = new System.Windows.Forms.Padding(0); this.logoPanel.Name = "logoPanel"; - this.logoPanel.Size = new System.Drawing.Size(231, 126); + this.logoPanel.Size = new System.Drawing.Size(232, 126); this.logoPanel.TabIndex = 21; // // playSpeed @@ -383,24 +392,16 @@ 2F, 3F, 5F}; + this.playSpeed.CurrentSpeed = 0F; this.playSpeed.Location = new System.Drawing.Point(563, 3); this.playSpeed.Maximum = 5; - this.playSpeed.Minimum = 1; + this.playSpeed.Minimum = 0; this.playSpeed.Name = "playSpeed"; this.playSpeed.Size = new System.Drawing.Size(136, 56); this.playSpeed.TabIndex = 26; - this.playSpeed.Value = 3; + this.playSpeed.Value = 2; this.playSpeed.ValueChanged += new System.EventHandler(this.onPlaySpeedChanged); // - // lblPlaySpeed - // - this.lblPlaySpeed.AutoSize = true; - this.lblPlaySpeed.Location = new System.Drawing.Point(705, 0); - this.lblPlaySpeed.Name = "lblPlaySpeed"; - this.lblPlaySpeed.Size = new System.Drawing.Size(158, 17); - this.lblPlaySpeed.TabIndex = 27; - this.lblPlaySpeed.Text = "Lejátszási sebesség: 1x"; - // // PlayerControls // this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F); diff --git a/client/DxPlay/PlayerForm.cs b/client/DxPlay/PlayerForm.cs index 4b936e06..d59b37a1 100644 --- a/client/DxPlay/PlayerForm.cs +++ b/client/DxPlay/PlayerForm.cs @@ -142,10 +142,6 @@ namespace DxPlay playerControls.TrackBar.Scroll += OnTrackBarScroll; } - //private void OnPlaySpeedValueChanged(object sender, EventArgs e) - //{ - //Console.WriteLine(sender.GetType()); - //} private void Pause_Click(object sender, EventArgs e) { -- 2.54.0