ArmandoCircuitos
Inicio
Electronica
Programacion
Resultado
Codigo
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Media; namespace Demultiplexor_DTMF_02 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } SoundPlayer dtmf; private void button1_Click(object sender, EventArgs e) { dtmf = new SoundPlayer("Secuencia_01.wav"); dtmf.PlayLooping(); } private void button2_Click(object sender, EventArgs e) { dtmf = new SoundPlayer("Secuencia_02.wav"); dtmf.PlayLooping(); } private void button3_Click(object sender, EventArgs e) { dtmf = new SoundPlayer("Secuencia_03.wav"); dtmf.PlayLooping(); } private void button4_Click(object sender, EventArgs e) { dtmf = new SoundPlayer("Secuencia_04.wav"); dtmf.PlayLooping(); } private void button5_Click(object sender, EventArgs e) { dtmf = new SoundPlayer("Secuencia_05.wav"); dtmf.PlayLooping(); } private void button6_Click(object sender, EventArgs e) { dtmf = new SoundPlayer("Secuencia_06.wav"); dtmf.PlayLooping(); } private void button7_Click(object sender, EventArgs e) { dtmf = new SoundPlayer("Secuencia_07.wav"); dtmf.PlayLooping(); } private void button8_Click(object sender, EventArgs e) { dtmf = new SoundPlayer("Secuencia_08.wav"); dtmf.PlayLooping(); } private void btnDetener_Click(object sender, EventArgs e) { dtmf.Stop(); } } }
Descarga del archivo
Descargar archivo