Ejemplo n.º 1
0
        public void NextSong()
        {
            var rnd = new Random();

            if (fr1._queueList.Count > 0)
            {
                fr1.PlaySong(fr1._queueList[0], this);
                fr1._queueList.RemoveAt(0);
            }
            else
            {
                if (fr1.GetCbLoop() == false)
                {
                    if (fr1.GetCbRandom())
                    {
                        _currentindex = rnd.Next(0, _searchSongs.Count);
                    }
                    else
                    {
                        _currentindex++;
                    }
                }



                if (_searchSongs.Count > _currentindex)
                {
                    SetListViewSelected(_currentindex, lvSearch);
                    fr1.PlaySong(_searchSongs[_currentindex], this);
                }
            }
        }