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

            return(NextSong);
        }