示例#1
0
        private void btnRepetir_Click(object sender, EventArgs e)
        {
            IteradorDobleE a = new IteradorDobleE(ruta);

            replay = canciones.repetir(replay);
            if (replay == false)
            {
                canciones.borrarLista();
            }
            else
            {
                while (a.actual != null)
                {
                    canciones.insertar(a.actual.dato);
                    a.next();
                }
            }
        }
示例#2
0
        private void btnSiguiente_Click(object sender, EventArgs e)
        {
            if (replay == false)
            {
                i++;
                load.next();
                axWindowsMediaPlayer1.URL = borrar_ruta = load.actual.dato;
                axWindowsMediaPlayer1.Ctlcontrols.play();
            }
            else
            {
                if (canciones.lc.dato != null)
                {
                    canciones.lc = canciones.lc.enlace;
                }

                axWindowsMediaPlayer1.URL = canciones.lc.dato;
                axWindowsMediaPlayer1.Ctlcontrols.play();
            }
        }