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

            return(NextSong);
        }