private void progressTimer_Tick(object sender, EventArgs e) { if (PlayerForm.playing & !PlayerForm.paused) { progressIndicator.Text = PlayerForm.getSongPosition(); } }
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; } } }