Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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);
            }
        }
Exemplo n.º 3
0
 public MainWindow()
 {
     InitializeComponent();
     VoiceCommandExecutor commandExectutor = new VoiceCommandExecutor();
     commandExectutor.Execute("Hello " + box_username.Text);
 }