private void Window_Loaded(object sender, RoutedEventArgs e) { SensorChooserUI.KinectSensorChooser = this.sensorChooser; this.sensorChooser.KinectChanged += new EventHandler<KinectChangedEventArgs>(sensorChooser_KinectChanged); this.sensorChooser.Start(); WebSocketServer webSocketServer = new WebSocketServer(); webSocketServer.Init(); }