private void Button_Click(object sender, RoutedEventArgs e) { //open remoSettings remoSettings RMS = new remoSettings(); RMS.Show(); }
void recEngine_SpeechRecognized(object sender, SpeechRecognizedEventArgs e) { //get the result and process and compare them with the existing Comands switch (e.Result.Text) { #region options case "Options": ss.SpeakAsync("Options get opend"); remoSettings SRM = new remoSettings(); SRM.Show(); break; #endregion #region close all case "close all": ss.SpeakAsync("Okay"); this.Close(); break; #endregion } }