// Clean up code void MainWindow_Closing(object sender, CancelEventArgs e) { if (KinectViewer != null) { KinectViewer.Dispose(); } }
void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e) { KinectViewer.Dispose(); }