public MainWindow()
 {
     InitializeComponent();
     completeCheck = new Check.Check();
     ready = true;
     this.Background = new SolidColorBrush(Colors.LightGreen);
 }
 public MainWindow(string ip,int port,int condition)
     : this()
 {
     this.ip = ip;
     this.port = port;
     this.condition = condition;
     this.started = false;
     led = new LedsProxy(ip, port);
     led.off("ChestLeds");
     led.on("ChestLedsGreen");
     completeCheck = new Check.Check();
 }
        public MainWindow(string ip, int port, int condition)
        {
            this.ip = ip;
            this.port = port;
            this.condition = condition;
            InitializeComponent();
            completeCheck = new Check.Check();
            ready = true;

            this.Background = new SolidColorBrush(Colors.LightGreen);

            gazeControl = new GazeControl(ip, port);
            kinect = new HCI.GAS.Kinect.KinectAudio("XMLs\\Thoughtfulness_Grammar.xml",ip,port);
            led = new LedsProxy(ip, port);
            led.off("ChestLeds");
            led.on("ChestLedsGreen");

            //TODO: check if auto has been depreciated.
            kinect.auto = false;

            end = false;
            tts = new TextToSpeechProxy(ip, port);
        }