Exemple #1
0
 private void Form1_Load(object sender, EventArgs e)
 {
     ASREngine asr = new ASREngine();
     asr.Register(new Play());
     asr.Register(new Stop());
     asr.Register(new VolumeDown());
     asr.Register(new VolumeUp());
     asr.Register(new NextMusic());
     asr.Register(new PreviousMusic());
     asr.Register(new Pause());
     asr.Register(new Continue());
     asr.Begin();
 }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            ASREngine asr = new ASREngine();

            asr.Register(new Play());
            asr.Register(new Stop());
            asr.Register(new VolumeDown());
            asr.Register(new VolumeUp());
            asr.Register(new NextMusic());
            asr.Register(new PreviousMusic());
            asr.Register(new Pause());
            asr.Register(new Continue());
            asr.Begin();
        }