Exemple #1
0
        private void onBassEvent(object sender, BassEventArgs args)
        {
            if (args.Event == BassEvent.PlaybackFinished)
            {
                PlaybackState      = PlaybackState.Stopped;
                CurrentLibraryItem = null;
            }

            if (args.Event == BassEvent.PlaybackRestarting)
            {
                PlaybackState = PlaybackState.Playing;
            }
        }
 private void onBassEvent(object sender, BassEventArgs args)
 {
     if (args.Event == BassEvent.PlaybackFinished)
     {
         PlaybackState = PlaybackState.Stopped;
         var listItem = NowPlaying.Current();
         if (listItem.Key < NowPlaying.Count - 1)
         {
             Play(NowPlaying.Forward().Value);
         }
         else
         {
             if (Repeat)
             {
                 Play(NowPlaying.Forward().Value);
             }
         }
     }
 }