private void Setup() { foreach (var modeCombination in ModeCombination.ValidCombinations) { this.comboMode.Items.Add(modeCombination); } //this.factory = new OpenNIDataSourceFactory("mouse_config.xml"); this.factory = new SDKDataSourceFactory(); var depthImageDataSource = this.factory.CreateDepthImageDataSource(); depthImageDataSource.NewDataAvailable += new Core.NewDataHandler<ImageSource>(MainWindow_NewDataAvailable); //this.trackingClusterDataSource = this.factory.CreateTrackingClusterDataSource(); depthImageDataSource.Start(); CreateController(); }
private void Setup() { foreach (var modeCombination in ModeCombination.ValidCombinations) { this.comboMode.Items.Add(modeCombination); } //this.factory = new OpenNIDataSourceFactory("mouse_config.xml"); this.factory = new SDKDataSourceFactory(); var depthImageDataSource = this.factory.CreateDepthImageDataSource(); depthImageDataSource.NewDataAvailable += new Core.NewDataHandler <ImageSource>(MainWindow_NewDataAvailable); //this.trackingClusterDataSource = this.factory.CreateTrackingClusterDataSource(); depthImageDataSource.Start(); CreateController(); }