private void updateNextButton(Player player) { if (NextButton.IsEnabled != player.CanSkipTrack) { NextButton.IsEnabled = player.CanSkipTrack; NextButton.InvalidateVisual(); } }
public void Play(Playinglist allTracksPlayinglist) { if (!NextButton.IsEnabled) { NextButton.IsEnabled = true; NextButton.InvalidateVisual(); } playinglist = allTracksPlayinglist; Player.Current?.Play(this, playinglist, null, TimeSpan.Zero, ShuffleButton.IsPressed, VolumeSlider.Value); }
public void Play(Track track) { if (NextButton.IsEnabled) { NextButton.IsEnabled = false; NextButton.InvalidateVisual(); } playinglist = null; Player.Current?.Play(this, null, track, TimeSpan.Zero, ShuffleButton.IsPressed, VolumeSlider.Value); }