void NewScan_Click(Object sender, RoutedEventArgs e) { MeasurementLoader NewScanWindow = new MeasurementLoader(); NewScanWindow.Show(); // TODO Refresh when results saved }
/// <summary> /// calls the markerless recognition methods with add measurement /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void AddMeasurement_Click(object sender, RoutedEventArgs e) { if (KinectSensor.KinectSensors.Count != 0) { this.shutAnyWindows(); //Definition of window viewer seems to get lost somewhere this.OwnedWindows[0].Close(); windowMeasurement = new MeasurementLoader(); windowMeasurement.Owner = this; windowMeasurement.Show(); } else { System.Diagnostics.Debug.WriteLine("Please connect a Kinect Device"); } }