Exemple #1
0
 private void PlayFile(object sender, RoutedEventArgs e)
 {
     if (displayedMediaPlayer != null)
     {
         bool succeed = displayedMediaPlayer.togglePlay(!isPlaying);
         if (succeed)
         {
             isPlaying = !isPlaying;
             PlayBtn.Active(isPlaying);
         }
     }
 }
Exemple #2
0
 public void autoPaused()
 {
     isPlaying = false;
     PlayBtn.Active(isPlaying);
 }