Exemple #1
0
        private void inglesTextBox_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter && e.Control == true)
            {
                try
                {
                    Ler_Ingles(inglesTextBox.Text, e.Shift ? toolStripRateVoiceSlow.Text : toolStripRateVoice.Text);

                    traducaoTextBox.Text = TradutorGOOGLE.Get_Traducao(inglesTextBox.Text);
                    foneticoTextBox.Text = FoneticoPHOTRANSEDIT.Get_Fonetico(inglesTextBox.Text);
                    e.SuppressKeyPress   = true;
                    e.Handled            = true;
                }
                catch (Exception Err)
                {
                    try
                    {
                        foneticoTextBox.Text = FoneticoPHOTRANSEDIT.Get_Fonetico(inglesTextBox.Text);
                        e.SuppressKeyPress   = true;
                        e.Handled            = true;
                    }
                    catch (Exception Err2)
                    {
                        foneticoTextBox.Text = "<<" + Err.Message + " at " + Err.Source + " / " + Err2.Message + " at " + Err2.Source + ">>";
                        e.SuppressKeyPress   = true;
                        e.Handled            = true;
                    }
                }
            }
            else if (e.KeyCode == Keys.F && e.Control == true)
            {
                e.Handled = true;
            }
        }
Exemple #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            Captura_Linguagem_Fonetica_PHOTRANSEDIT C = new Captura_Linguagem_Fonetica_PHOTRANSEDIT();

            string g = C.Get_Fonetico("I like woman with bread");
        }