1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-07 08:34:06 +02:00

Move video player form controls to a different namespace

This commit is contained in:
chylex 2017-08-13 16:14:46 +02:00
parent 34e5185fa1
commit 2fcf3604a8
5 changed files with 9 additions and 8 deletions

View File

@ -2,7 +2,7 @@
using System.Windows.Forms;
using WMPLib;
namespace TweetDuck.Video{
namespace TweetDuck.Video.Controls{
[DesignTimeVisible(true)]
[Clsid("{6bf52a52-394a-11d3-b153-00c04f79faa6}")]
class ControlWMP : AxHost{

View File

@ -1,11 +1,11 @@
using System.Drawing;
using System.Windows.Forms;
namespace TweetDuck.Video{
sealed class FlatProgressBar : ProgressBar{
namespace TweetDuck.Video.Controls{
sealed class SeekBar : ProgressBar{
private readonly SolidBrush brush;
public FlatProgressBar(){
public SeekBar(){
brush = new SolidBrush(Color.White);
SetStyle(ControlStyles.UserPaint, true);

View File

@ -27,7 +27,7 @@ private void InitializeComponent() {
this.timerSync = new System.Windows.Forms.Timer(this.components);
this.trackBarVolume = new System.Windows.Forms.TrackBar();
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.timerData = new System.Windows.Forms.Timer(this.components);
((System.ComponentModel.ISupportInitialize)(this.trackBarVolume)).BeginInit();
@ -134,7 +134,7 @@ private void InitializeComponent() {
private System.Windows.Forms.Timer timerSync;
private System.Windows.Forms.TrackBar trackBarVolume;
private System.Windows.Forms.TableLayoutPanel tablePanel;
private FlatProgressBar progressSeek;
private Controls.SeekBar progressSeek;
private System.Windows.Forms.Label labelTime;
private System.Windows.Forms.Timer timerData;
}

View File

@ -2,6 +2,7 @@
using System.Drawing;
using System.Runtime.InteropServices;
using System.Windows.Forms;
using TweetDuck.Video.Controls;
using TweetLib.Communication;
using WMPLib;

View File

@ -44,10 +44,10 @@
<Reference Include="System.Windows.Forms" />
</ItemGroup>
<ItemGroup>
<Compile Include="ControlWMP.cs">
<Compile Include="Controls\ControlWMP.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="FlatProgressBar.cs">
<Compile Include="Controls\SeekBar.cs">
<SubType>Component</SubType>
</Compile>
<Compile Include="FormPlayer.cs">