//connect to the Nao robot
        private void ConnectToNao(string nao_ip_address, int nao_port)
        {
            bool success = true;

            try
            {
                TextToSpeechProxy    = new TextToSpeechProxy(nao_ip_address, nao_port);
                BehaviorManagerProxy = new BehaviorManagerProxy(nao_ip_address, nao_port);
                LedsProxy            = new LedsProxy(nao_ip_address, nao_port);
                VideoRecorderProxy   = new VideoRecorderProxy(nao_ip_address, nao_port);
                MotionProxy          = new MotionProxy(nao_ip_address, nao_port);
                AudioProxy           = new AudioDeviceProxy(nao_ip_address, nao_port);
            }
            catch (Exception)
            {
                success = false;
            }
            ConnectButton.Dispatcher.BeginInvoke(DispatcherPriority.Normal,
                                                 new UpdateInterfaceAfterConnectDelegate(UpdateUserInterfaceAfterConnect), success);
        }
 private void ConnectToNao(string nao_ip_address, int nao_port)
 {
     bool success = true;
     try
     {
         TextToSpeechProxy = new TextToSpeechProxy(nao_ip_address, nao_port);
         BehaviorManagerProxy = new BehaviorManagerProxy(nao_ip_address, nao_port);
         LedsProxy = new LedsProxy(nao_ip_address, nao_port);
         VideoRecorderProxy = new VideoRecorderProxy(nao_ip_address, nao_port);
     }
     catch (Exception)
     {
         success = false;
     }
     ConnectButton.Dispatcher.BeginInvoke(DispatcherPriority.Normal,
         new UpdateInterfaceAfterConnectDelegate(UpdateUserInterfaceAfterConnect), success);
 }