private void progressTimer_Tick(object sender, EventArgs e)
 {
     if (PlayerForm.playing & !PlayerForm.paused)
     {
         progressIndicator.Text = PlayerForm.getSongPosition();
     }
 }
示例#2
0
 private void progressTimer_Tick(object sender, EventArgs e)
 {
     if (PlayerForm.playing & !PlayerForm.paused)
     {
         PlayerForm.avoidnextqueue = false;
         progressIndicator.Text    = PlayerForm.getSongPosition();
         if ((int)PlayerForm.Player.CurrentBackend.CurrentTime.TotalSeconds <= ProgressBar.Maximum)
         {
             ProgressBar.Value = (int)PlayerForm.Player.CurrentBackend.CurrentTime.TotalSeconds;
         }
     }
 }