added bool for cdg or not

This commit is contained in:
Matt Bruce 2016-03-16 21:52:15 -05:00
parent 54c595809e
commit 8060335da2
2 changed files with 4 additions and 5 deletions

View File

@ -20,8 +20,9 @@ namespace KaraokePlayer
private DateTime _startTime;
private readonly System.Timers.Timer _lyricTimer = new System.Timers.Timer();
public KaraokeVideoPlayer()
public KaraokeVideoPlayer(bool isCDG)
{
this.isCDG = isCDG;
InitializeComponent();
_lyricTimer.Interval = 33;
_lyricTimer.Elapsed += LyricTimerOnElapsed;

View File

@ -36,8 +36,8 @@
this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
this.materialListBox1 = new MaterialSkin.Controls.MaterialListBox();
this.materialSingleLineTextField1 = new MaterialSkin.Controls.MaterialSingleLineTextField();
this.karaokeCDGPlayer = new KaraokePlayer.KaraokeVideoPlayer();
this.karaokeMP4Player = new KaraokePlayer.KaraokeVideoPlayer();
this.karaokeCDGPlayer = new KaraokePlayer.KaraokeVideoPlayer(true);
this.karaokeMP4Player = new KaraokePlayer.KaraokeVideoPlayer(false);
this.browseDialog = new System.Windows.Forms.FolderBrowserDialog();
this.tableLayoutPanel1.SuspendLayout();
this.flowLayoutPanel1.SuspendLayout();
@ -188,14 +188,12 @@
this.karaokeCDGPlayer.Name = "karaokeCDGPlayer";
this.karaokeCDGPlayer.Size = new System.Drawing.Size(472, 458);
this.karaokeCDGPlayer.TabIndex = 0;
this.karaokeCDGPlayer.isCDG = true;
this.karaokeMP4Player.Dock = System.Windows.Forms.DockStyle.Fill;
this.karaokeMP4Player.Location = new System.Drawing.Point(0, 0);
this.karaokeMP4Player.Name = "karaokeMP4Player";
this.karaokeMP4Player.Size = new System.Drawing.Size(472, 458);
this.karaokeMP4Player.TabIndex = 0;
this.karaokeMP4Player.isCDG = false;
//
// MainForm
//