public MainWindow() { /* Open the Kinect sensor */ kinectSensor = KinectSensor.Instance; // Initialize the stream we interested kinectSensor.AddStream <BodyStream>(); kinectSensor.AddStream <ColorStream>(); kinectSensor.AddStream <DepthStream>(); // Run Kinect! kinectSensor.Open(); /* GUI Initialization */ // Use the window object as the view model in this simple example this.DataContext = this; // Initialize the components (controls) of the window InitializeComponent(); /* Set up the TCP/IP connection */ tcpConnector = new TCPConnector(clientTypes.KINECT); serverIP = System.IO.File.ReadAllText(filePathToServerIP); serverIP_TextBox.Text = serverIP; }