Exemplo n.º 1
0
        private void PictureBox1_Click(object sender, EventArgs e)
        {
            FormPrincipal principal = new FormPrincipal();

            principal.Show();
            pictureBox1.Dispose();
        }
Exemplo n.º 2
0
        private void Detection(object sender, SpeechRecognizedEventArgs e)
        {
            foreach (RecognizedWordUnit palabra in e.Result.Words)
            {
                label1.Text = palabra.Pronunciation;

                if (palabra.Pronunciation == "Abrir")
                {
                    FormPrincipal principal = new FormPrincipal();
                    principal.Show();
                }
            }
        }