private void btnPlay_Click(object sender, EventArgs e) { if (replay == false) { load = new IteradorDobleE(ruta); axWindowsMediaPlayer1.URL = borrar_ruta = load.actual.dato; axWindowsMediaPlayer1.Ctlcontrols.play(); } else { axWindowsMediaPlayer1.URL = canciones.lc.dato; axWindowsMediaPlayer1.Ctlcontrols.play(); } }
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(); } } }