Exemple #1
0
 private void btnPrev_Click(object sender, EventArgs e)
 {
     if ((Vars.CurrentTrackNumber > 0) && (!Vars.mixed) && (playlist.Items.Count > 0))
     {
         BassLike.Stop();
         btnPlay.BackgroundImage = Properties.Resources.player_pause_5536;
         Vars.play      = true;
         timer1.Enabled = true;
         BassLike.ToPrevTrack();
         playlist.SelectedIndex = Vars.CurrentTrackNumber;
         label1.Text            = TimeSpan.FromSeconds(BassLike.GetPosOfStream(BassLike.Stream)).ToString("mm':'ss");
         label2.Text            = TimeSpan.FromSeconds(BassLike.GetTimeOfStream(BassLike.Stream)).ToString("mm':'ss");
         TagModel TM = new TagModel(Vars.Files[Vars.CurrentTrackNumber]);
         label3.Text     = (TM.Artist + " - " + TM.Title + "   ");
         slTime.Maximum  = BassLike.GetTimeOfStream(BassLike.Stream);
         slTime.Value    = BassLike.GetPosOfStream(BassLike.Stream);
         Vars.startedNew = false;
     }
 }