private void Button_Click(object sender, RoutedEventArgs e) { try { VoiceCommandExecutor commandExectutor = new VoiceCommandExecutor(); commandExectutor.Execute("Connecting to "+ box_room.Text); Room room = new Room(box_url.Text, box_room.Text, box_username.Text, null); label_status.Content = "Online :)"; } catch (Exception ex) { MessageBox.Show("Sorry, could not connect :( " + ex.Message); } }
public MainWindow() { InitializeComponent(); VoiceCommandExecutor commandExectutor = new VoiceCommandExecutor(); commandExectutor.Execute("Hello " + box_username.Text); }