Exemplo n.º 1
0
 public void Play(Lala.API.Song song)
 {
     Stop();
     Lala.API.Instance.CurrentUser.Library.Playing.CurrentSong = song;
     NowPlaying = song;
     PlaySong(song.PlayLink);
 }
Exemplo n.º 2
0
 public bool SongByToken(Song s)
 {
     if (s.PlayToken == CurrentSong.PlayToken)
         return true;
     else
         return false;
 }
Exemplo n.º 3
0
 public Song GetPrevious(Song CurrentSong)
 {
     int CurrentIndex = Songs.FindIndex(SongByToken);
     Song NextSong = Songs[CurrentIndex - 1];
     return NextSong;
 }
Exemplo n.º 4
0
 public Song GetNext(Song CurrentSong)
 {
     int CurrentIndex = Songs.FindIndex(SongByToken);
     Song NextSong = Songs[CurrentIndex + 1];
     return NextSong;
 }
Exemplo n.º 5
0
Arquivo: Queue.cs Projeto: wedtm/Nisme
 public void AddSongToQueue(Song song)
 {
     Lala.API.Instance.CurrentUser.Queue.Add(song);
         QueueModified(this, new EventArgs());
 }
Exemplo n.º 6
0
        public Song GetNext()
        {
            Song NextSong = Songs[0];

            return(NextSong);
        }