mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-06-01 02:34:04 +02:00
Move video player form controls to a different namespace
This commit is contained in:
parent
34e5185fa1
commit
2fcf3604a8
video/TweetDuck.Video
@ -2,7 +2,7 @@
|
|||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
using WMPLib;
|
using WMPLib;
|
||||||
|
|
||||||
namespace TweetDuck.Video{
|
namespace TweetDuck.Video.Controls{
|
||||||
[DesignTimeVisible(true)]
|
[DesignTimeVisible(true)]
|
||||||
[Clsid("{6bf52a52-394a-11d3-b153-00c04f79faa6}")]
|
[Clsid("{6bf52a52-394a-11d3-b153-00c04f79faa6}")]
|
||||||
class ControlWMP : AxHost{
|
class ControlWMP : AxHost{
|
@ -1,11 +1,11 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace TweetDuck.Video{
|
namespace TweetDuck.Video.Controls{
|
||||||
sealed class FlatProgressBar : ProgressBar{
|
sealed class SeekBar : ProgressBar{
|
||||||
private readonly SolidBrush brush;
|
private readonly SolidBrush brush;
|
||||||
|
|
||||||
public FlatProgressBar(){
|
public SeekBar(){
|
||||||
brush = new SolidBrush(Color.White);
|
brush = new SolidBrush(Color.White);
|
||||||
|
|
||||||
SetStyle(ControlStyles.UserPaint, true);
|
SetStyle(ControlStyles.UserPaint, true);
|
4
video/TweetDuck.Video/FormPlayer.Designer.cs
generated
4
video/TweetDuck.Video/FormPlayer.Designer.cs
generated
@ -27,7 +27,7 @@ private void InitializeComponent() {
|
|||||||
this.timerSync = new System.Windows.Forms.Timer(this.components);
|
this.timerSync = new System.Windows.Forms.Timer(this.components);
|
||||||
this.trackBarVolume = new System.Windows.Forms.TrackBar();
|
this.trackBarVolume = new System.Windows.Forms.TrackBar();
|
||||||
this.tablePanel = new System.Windows.Forms.TableLayoutPanel();
|
this.tablePanel = new System.Windows.Forms.TableLayoutPanel();
|
||||||
this.progressSeek = new TweetDuck.Video.FlatProgressBar();
|
this.progressSeek = new TweetDuck.Video.Controls.SeekBar();
|
||||||
this.labelTime = new System.Windows.Forms.Label();
|
this.labelTime = new System.Windows.Forms.Label();
|
||||||
this.timerData = new System.Windows.Forms.Timer(this.components);
|
this.timerData = new System.Windows.Forms.Timer(this.components);
|
||||||
((System.ComponentModel.ISupportInitialize)(this.trackBarVolume)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.trackBarVolume)).BeginInit();
|
||||||
@ -134,7 +134,7 @@ private void InitializeComponent() {
|
|||||||
private System.Windows.Forms.Timer timerSync;
|
private System.Windows.Forms.Timer timerSync;
|
||||||
private System.Windows.Forms.TrackBar trackBarVolume;
|
private System.Windows.Forms.TrackBar trackBarVolume;
|
||||||
private System.Windows.Forms.TableLayoutPanel tablePanel;
|
private System.Windows.Forms.TableLayoutPanel tablePanel;
|
||||||
private FlatProgressBar progressSeek;
|
private Controls.SeekBar progressSeek;
|
||||||
private System.Windows.Forms.Label labelTime;
|
private System.Windows.Forms.Label labelTime;
|
||||||
private System.Windows.Forms.Timer timerData;
|
private System.Windows.Forms.Timer timerData;
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
using TweetDuck.Video.Controls;
|
||||||
using TweetLib.Communication;
|
using TweetLib.Communication;
|
||||||
using WMPLib;
|
using WMPLib;
|
||||||
|
|
||||||
|
@ -44,10 +44,10 @@
|
|||||||
<Reference Include="System.Windows.Forms" />
|
<Reference Include="System.Windows.Forms" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Compile Include="ControlWMP.cs">
|
<Compile Include="Controls\ControlWMP.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="FlatProgressBar.cs">
|
<Compile Include="Controls\SeekBar.cs">
|
||||||
<SubType>Component</SubType>
|
<SubType>Component</SubType>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="FormPlayer.cs">
|
<Compile Include="FormPlayer.cs">
|
||||||
|
Loading…
Reference in New Issue
Block a user