Inheritance: System.EventArgs
示例#1
0
 private void StreamPlayerOnNextSong(object sender, SongEventArgs e)
 {
     if (e.Song != null)
     {
         _songPlayer.Start(e.Song);
     }
 }
示例#2
0
 private void SongPlayerOnCurrentSongCompleted(object sender, SongEventArgs e)
 {
     if (!_streamPlayer.Next(CancellationToken.None))
     {
         VoteableQueueItem<ISongStream> item;
         if (_queue.TryGetNext(out item))
         {
             _streamPlayer.CurrentStream = item.Item;
             _streamPlayer.Next(CancellationToken.None);
         }
     }
 }
示例#3
0
 protected void OnNextSong(SongEventArgs e)
 {
     EventHandler<SongEventArgs> handler = NextSong;
     if (handler != null) handler(this, e);
 }