public Room(string url, string name, string username, string passcode) { Run(); _url = url; _name = name; _username = username; _passcode = passcode; _webClient = new WebClient(url, name, username); _voiceCommandExecutor = new VoiceCommandExecutor(); _webClient.HubProxy.On<string>("sendVoiceCommand", OnVoiceCommand); }
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); }