private void RefreshDepthFrame()
{
using (var depthFrameSource = new DepthFramePointerDataSource(this.CurrentFrame.Frame))
{
this.clusterDataSource = new OpenNIClusterDataSource(depthFrameSource, this.clusterDataSourceSettings);
this.shapeDataSource = new ClusterShapeDataSource(this.clusterDataSource, this.shapeDataSourceSettings);
this.handDataSource = new HandDataSource(this.shapeDataSource, this.handDataSourceSettings);
this.ToggleLayers();
this.ImageSource = new DepthImageDataSource(depthFrameSource);
this.ImageSource.Start();
this.handDataSource.Start();
depthFrameSource.Push();
}
}