Esempio n. 1
0
        private void FlacPlayer_CanPlayChanged_StartPlayback(object sender, CanPlayEventArgs e)
        {
            if (e.CanPlay)
            {
                InternalPlay();

                CanPlayChanged -= FlacPlayer_CanPlayChanged_StartPlayback;
                _playbackSubscribed = false;
            }
        }
Esempio n. 2
0
 private void Mp3Player_CanPlayChanged(object sender, CanPlayEventArgs e)
 {
     PlayPauseToggleButton.IsEnabled = e.CanPlay;
 }
Esempio n. 3
0
 protected virtual void OnCanPlayChanged(CanPlayEventArgs e)
 {
     if (CanPlayChanged != null)
     {
         CanPlayChanged(this, e);
     }
 }