Beispiel #1
0
 private void PreviousButton_Click(object sender, EventArgs e)
 {
     if (MediaFiles.Items.Count > 0 && trackNum > 0)
     {
         LoadFile(trackNum - 1);
         MediaFiles.ClearSelected();
         MediaFiles.SelectedIndex = trackNum - 1;
         trackNum--;
     }
 }
Beispiel #2
0
 private void PreviousButton_Click(object sender, EventArgs e)
 {
     if (MediaFiles.Items.Count > 0 && trackNum > 0)
     {
         Thread thread = new Thread(() => LoadFile(trackNum));
         thread.Start();
         MediaFiles.ClearSelected();
         MediaFiles.SelectedIndex = trackNum - 1;
         trackNum--;
     }
 }
Beispiel #3
0
 private void PlayNextTrack()
 {
     if (MediaFiles.Items.Count > 0 && trackNum < MediaFiles.Items.Count - 1)
     {
         trackNum++;
         LoadFile(trackNum);
         MediaFiles.ClearSelected();
         MediaFiles.SelectedIndex = trackNum;
     }
     else
     {
         trackNum = -1;
     }
 }
Beispiel #4
0
 private void PlayNextTrack()
 {
     if (MediaFiles.Items.Count > 0 && trackNum < (MediaFiles.Items.Count - 1))
     {
         trackNum++;
         Thread thread = new Thread(() => LoadFile(trackNum));
         thread.Start();
         MediaFiles.ClearSelected();
         MediaFiles.SelectedIndex = trackNum;
     }
     else
     {
         trackNum = -1;
         Stop_Function();
     }
 }