Example #1
0
 private void DiscardStartOver_ButtonClick(object sender, RoutedEventArgs e)
 {
     if (PageStatus == 0 || PageStatus == 2)
     {
         mw.runKinectScan = false;
         mw.resetMainWindow();
         //navigate back to StartPage
         NavigationService.Navigate(new StartPage());
     }
     else if (PageStatus == 1 || PageStatus == 3)
     {
         PicturePreviewing();
         PageStatus = PageStatus == 1 ? 0 : 2;
         // Re-enable picture refreshing
         kinectScanConfig.setRunStatus(takePictures: true, keepAlive: true);
         kinectScanConfig.makeConfigFile();
     }
     //deleteExistingPictures();
 }
Example #2
0
 public void resetMainWindow()
 {
     if (File.Exists("KinectScanConfig.json"))
     {
         KinectScanConfig kinectScanConfig = new KinectScanConfig("KinectScanConfig.json");
         kinectScanConfig.setRunStatus(false, false);
         kinectScanConfig.makeConfigFile();
     }
     Thread.Sleep(1000);
     PlayKinects();
 }
Example #3
0
 private void MainWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     //previewCams = false;
     stopThreads = true;
     if (File.Exists("KinectScanConfig.json"))
     {
         KinectScanConfig kinectScanConfig = new KinectScanConfig("KinectScanConfig.json");
         kinectScanConfig.setRunStatus(false, false);
         kinectScanConfig.makeConfigFile();
     }
 }