private void buttonFindSlideShow_Click(object sender, RoutedEventArgs e) { try { ppt.FindSlideShow(); } catch (Exception ex) { MessageBox.Show(ex.Message); } }
static void SreSpeechRecognized(object sender, SpeechRecognizedEventArgs e) { try { Console.WriteLine("\nSpeech Recognized: \t{0}", e.Result.Text); switch (e.Result.Text) { case "かいし": ppt.FindSlideShow(); break; case "しゅうりょう": ppt.End(); break; case "つぎ": ppt.Next(); break; case "まえ": ppt.Prev(); break; case "びじゅあるすたじお": vs.FindVisualStudio(); break; case "びるど": vs.Build(); break; case "でばっぐ": vs.Debug(); break; case "ぷろんぷと": prompt.FindPrompt(); break; case "いぐじっと": prompt.Exit(); break; } } catch (Exception ex) { Console.WriteLine(ex.Message); } }