private void SetSelected(TrackControl control)
 {
     foreach(TrackControl ctrl in _resultcontrols) { ctrl.Selected = false;}
     if (_readonly) return;
     _selected = control;
     control.Selected = true;
 }
 private void SelectLastVisible()
 {
     foreach(TrackControl control in _resultcontrols)
     {
         if (control.Visible) SetSelected(_selected = control);
     }
 }
 private void InitialiseResultControl(TrackControl control)
 {
     control.TrackClicked+=new EventHandler(control_TrackClicked);
     control.TrackDoubleClicked+=new EventHandler(control_TrackDoubleClicked);
 }
 /// <summary> 
 /// Required method for Designer support - do not modify 
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.lblNext = new System.Windows.Forms.Label();
     this.lblPrevious = new System.Windows.Forms.Label();
     this.userControlTrack6 = new JukeBoxControls.TrackControl();
     this.userControlTrack5 = new JukeBoxControls.TrackControl();
     this.userControlTrack4 = new JukeBoxControls.TrackControl();
     this.userControlTrack3 = new JukeBoxControls.TrackControl();
     this.userControlTrack2 = new JukeBoxControls.TrackControl();
     this.userControlTrack1 = new JukeBoxControls.TrackControl();
     this.lblSummary = new System.Windows.Forms.Label();
     this.SuspendLayout();
     //
     // lblNext
     //
     this.lblNext.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblNext.Location = new System.Drawing.Point(469, 378);
     this.lblNext.Name = "lblNext";
     this.lblNext.Size = new System.Drawing.Size(69, 40);
     this.lblNext.TabIndex = 17;
     this.lblNext.Text = ">";
     this.lblNext.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblNext.Click += new System.EventHandler(this.lblNext_Click);
     //
     // lblPrevious
     //
     this.lblPrevious.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblPrevious.Location = new System.Drawing.Point(0, 378);
     this.lblPrevious.Name = "lblPrevious";
     this.lblPrevious.Size = new System.Drawing.Size(64, 40);
     this.lblPrevious.TabIndex = 16;
     this.lblPrevious.Text = "<";
     this.lblPrevious.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblPrevious.Click += new System.EventHandler(this.lblPrevious_Click);
     //
     // userControlTrack6
     //
     this.userControlTrack6.Location = new System.Drawing.Point(0, 310);
     this.userControlTrack6.Name = "userControlTrack6";
     this.userControlTrack6.Size = new System.Drawing.Size(728, 56);
     this.userControlTrack6.TabIndex = 15;
     this.userControlTrack6.Track = null;
     //
     // userControlTrack5
     //
     this.userControlTrack5.Location = new System.Drawing.Point(0, 248);
     this.userControlTrack5.Name = "userControlTrack5";
     this.userControlTrack5.Size = new System.Drawing.Size(728, 56);
     this.userControlTrack5.TabIndex = 14;
     this.userControlTrack5.Track = null;
     //
     // userControlTrack4
     //
     this.userControlTrack4.Location = new System.Drawing.Point(0, 186);
     this.userControlTrack4.Name = "userControlTrack4";
     this.userControlTrack4.Size = new System.Drawing.Size(728, 56);
     this.userControlTrack4.TabIndex = 13;
     this.userControlTrack4.Track = null;
     //
     // userControlTrack3
     //
     this.userControlTrack3.Location = new System.Drawing.Point(0, 124);
     this.userControlTrack3.Name = "userControlTrack3";
     this.userControlTrack3.Size = new System.Drawing.Size(728, 56);
     this.userControlTrack3.TabIndex = 12;
     this.userControlTrack3.Track = null;
     //
     // userControlTrack2
     //
     this.userControlTrack2.Location = new System.Drawing.Point(0, 62);
     this.userControlTrack2.Name = "userControlTrack2";
     this.userControlTrack2.Size = new System.Drawing.Size(728, 56);
     this.userControlTrack2.TabIndex = 11;
     this.userControlTrack2.Track = null;
     //
     // userControlTrack1
     //
     this.userControlTrack1.Location = new System.Drawing.Point(0, 0);
     this.userControlTrack1.Name = "userControlTrack1";
     this.userControlTrack1.Size = new System.Drawing.Size(728, 56);
     this.userControlTrack1.TabIndex = 10;
     this.userControlTrack1.Track = null;
     //
     // lblSummary
     //
     this.lblSummary.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblSummary.Location = new System.Drawing.Point(83, 386);
     this.lblSummary.Name = "lblSummary";
     this.lblSummary.Size = new System.Drawing.Size(368, 24);
     this.lblSummary.TabIndex = 21;
     this.lblSummary.Text = "1 to 6";
     this.lblSummary.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     //
     // TrackListControl
     //
     this.Controls.Add(this.lblSummary);
     this.Controls.Add(this.lblNext);
     this.Controls.Add(this.lblPrevious);
     this.Controls.Add(this.userControlTrack6);
     this.Controls.Add(this.userControlTrack5);
     this.Controls.Add(this.userControlTrack4);
     this.Controls.Add(this.userControlTrack3);
     this.Controls.Add(this.userControlTrack2);
     this.Controls.Add(this.userControlTrack1);
     this.Name = "TrackListControl";
     this.Size = new System.Drawing.Size(570, 421);
     this.ResumeLayout(false);
 }
示例#5
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(JukeBox));
     this.timerStartSong = new System.Windows.Forms.Timer(this.components);
     this.timerUpdateDisplay = new System.Windows.Forms.Timer(this.components);
     this.timerLoadLibrary = new System.Windows.Forms.Timer(this.components);
     this.panelAll = new System.Windows.Forms.Panel();
     this.lblImportStatus = new System.Windows.Forms.Label();
     this.trackListControl = new JukeBoxControls.TrackListControl();
     this.stringListControl = new JukeBoxControls.StringListControl();
     this.Player = new AxMicrosoft.MediaPlayer.Interop.AxWindowsMediaPlayer();
     this.lblCriteria = new System.Windows.Forms.Label();
     this.lblSearchTrack = new System.Windows.Forms.Label();
     this.lblSearchAlbum = new System.Windows.Forms.Label();
     this.lblSearchArtist = new System.Windows.Forms.Label();
     this.lblNowPlaying = new System.Windows.Forms.Label();
     this.trackControl = new JukeBoxControls.TrackControl();
     this.lblTime = new ComponentScience.ElementsEx.LedLabel();
     this.panelAll.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.Player)).BeginInit();
     this.SuspendLayout();
     //
     // timerStartSong
     //
     this.timerStartSong.Tick += new System.EventHandler(this.timerStart_Tick);
     //
     // timerUpdateDisplay
     //
     this.timerUpdateDisplay.Tick += new System.EventHandler(this.timerUpdateDisplay_Tick);
     //
     // timerLoadLibrary
     //
     this.timerLoadLibrary.Interval = 1000;
     this.timerLoadLibrary.Tick += new System.EventHandler(this.timerLoadLibrary_Tick);
     //
     // panelAll
     //
     this.panelAll.Controls.Add(this.lblImportStatus);
     this.panelAll.Controls.Add(this.trackListControl);
     this.panelAll.Controls.Add(this.stringListControl);
     this.panelAll.Controls.Add(this.Player);
     this.panelAll.Controls.Add(this.lblCriteria);
     this.panelAll.Controls.Add(this.lblSearchTrack);
     this.panelAll.Controls.Add(this.lblSearchAlbum);
     this.panelAll.Controls.Add(this.lblSearchArtist);
     this.panelAll.Controls.Add(this.lblNowPlaying);
     this.panelAll.Controls.Add(this.trackControl);
     this.panelAll.Controls.Add(this.lblTime);
     this.panelAll.Location = new System.Drawing.Point(0, 1);
     this.panelAll.Name = "panelAll";
     this.panelAll.Size = new System.Drawing.Size(800, 600);
     this.panelAll.TabIndex = 0;
     //
     // lblImportStatus
     //
     this.lblImportStatus.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblImportStatus.Location = new System.Drawing.Point(23, 95);
     this.lblImportStatus.Name = "lblImportStatus";
     this.lblImportStatus.Size = new System.Drawing.Size(178, 33);
     this.lblImportStatus.TabIndex = 54;
     this.lblImportStatus.Text = "Current Queue";
     this.lblImportStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // trackListControl
     //
     this.trackListControl.Location = new System.Drawing.Point(230, 149);
     this.trackListControl.Name = "trackListControl";
     this.trackListControl.Size = new System.Drawing.Size(567, 434);
     this.trackListControl.TabIndex = 53;
     //
     // stringListControl
     //
     this.stringListControl.Location = new System.Drawing.Point(228, 149);
     this.stringListControl.Name = "stringListControl";
     this.stringListControl.Size = new System.Drawing.Size(569, 434);
     this.stringListControl.TabIndex = 52;
     //
     // Player
     //
     this.Player.Enabled = true;
     this.Player.Location = new System.Drawing.Point(0, 0);
     this.Player.Name = "Player";
     this.Player.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("Player.OcxState")));
     this.Player.Size = new System.Drawing.Size(35, 34);
     this.Player.TabIndex = 51;
     this.Player.Visible = false;
     //
     // lblCriteria
     //
     this.lblCriteria.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
     this.lblCriteria.Location = new System.Drawing.Point(228, 95);
     this.lblCriteria.Name = "lblCriteria";
     this.lblCriteria.Size = new System.Drawing.Size(569, 51);
     this.lblCriteria.TabIndex = 50;
     this.lblCriteria.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
     this.lblCriteria.UseMnemonic = false;
     //
     // lblSearchTrack
     //
     this.lblSearchTrack.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblSearchTrack.Location = new System.Drawing.Point(0, 480);
     this.lblSearchTrack.Name = "lblSearchTrack";
     this.lblSearchTrack.Size = new System.Drawing.Size(220, 37);
     this.lblSearchTrack.TabIndex = 49;
     this.lblSearchTrack.Text = "Track Search";
     this.lblSearchTrack.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblSearchAlbum
     //
     this.lblSearchAlbum.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblSearchAlbum.Location = new System.Drawing.Point(0, 369);
     this.lblSearchAlbum.Name = "lblSearchAlbum";
     this.lblSearchAlbum.Size = new System.Drawing.Size(224, 42);
     this.lblSearchAlbum.TabIndex = 48;
     this.lblSearchAlbum.Text = "Album Search";
     this.lblSearchAlbum.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblSearchArtist
     //
     this.lblSearchArtist.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblSearchArtist.Location = new System.Drawing.Point(1, 263);
     this.lblSearchArtist.Name = "lblSearchArtist";
     this.lblSearchArtist.Size = new System.Drawing.Size(221, 40);
     this.lblSearchArtist.TabIndex = 47;
     this.lblSearchArtist.Text = "Artist Search";
     this.lblSearchArtist.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // lblNowPlaying
     //
     this.lblNowPlaying.BackColor = System.Drawing.Color.CornflowerBlue;
     this.lblNowPlaying.Location = new System.Drawing.Point(1, 149);
     this.lblNowPlaying.Name = "lblNowPlaying";
     this.lblNowPlaying.Size = new System.Drawing.Size(222, 40);
     this.lblNowPlaying.TabIndex = 46;
     this.lblNowPlaying.Text = "Current Queue";
     this.lblNowPlaying.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     //
     // trackControl
     //
     this.trackControl.BackColor = System.Drawing.Color.Black;
     this.trackControl.Location = new System.Drawing.Point(235, 0);
     this.trackControl.Name = "trackControl";
     this.trackControl.Size = new System.Drawing.Size(509, 92);
     this.trackControl.TabIndex = 45;
     this.trackControl.Track = null;
     //
     // lblTime
     //
     this.lblTime.BackColor = System.Drawing.Color.Black;
     this.lblTime.Columns = 5;
     this.lblTime.ForeColor = System.Drawing.Color.GreenYellow;
     this.lblTime.Location = new System.Drawing.Point(46, 11);
     this.lblTime.Name = "lblTime";
     this.lblTime.Segment.Size = 3;
     this.lblTime.Size = new System.Drawing.Size(174, 64);
     this.lblTime.TabIndex = 44;
     this.lblTime.Text = "88:88";
     //
     // JukeBox
     //
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
     this.BackColor = System.Drawing.SystemColors.Control;
     this.ClientSize = new System.Drawing.Size(949, 641);
     this.ControlBox = false;
     this.Controls.Add(this.panelAll);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
     this.KeyPreview = true;
     this.Name = "JukeBox";
     this.ShowInTaskbar = false;
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.Text = "JukeBox";
     this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
     this.panelAll.ResumeLayout(false);
     ((System.ComponentModel.ISupportInitialize)(this.Player)).EndInit();
     this.ResumeLayout(false);
 }