/// <summary> /// Starts the presentation in full screen mode /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void cmdStartPresentation_Click(object sender, EventArgs e) { try { SpeechRecognitionEngine sr = new SpeechRecognitionEngine(new System.Globalization.CultureInfo("en-GB")); SpeechRecognition speech = new SpeechRecognition(sr, api.getAllStringKeywordsInDictionary(cmdDictionary.SelectedItem.ToString()), location, dictionaryName, Accuracy.Value); speech.Start(); } catch (NullReferenceException) { MessageBox.Show("Please select a dictionary to proceed"); } }
private void smdStartPresentation_Click(object sender, EventArgs e) { try { SpeechRecognitionEngine sr = new SpeechRecognitionEngine(new System.Globalization.CultureInfo("en-GB")); SpeechRecognition speech = new SpeechRecognition(sr, api.getAllStringKeywordsInDictionary(cmdDictionary.SelectedItem.ToString()), location, dictionaryName); speech.Start(); } catch (NullReferenceException) { } }