private void WindowClosed(object sender, EventArgs e) { if (null != kinectSensorChooser.Kinect) { kinectSensorChooser.Kinect.Stop(); } MainWindow VP = new MainWindow(); VP.Show(); }
/// Execute shutdown tasks /// <param name="sender">object sending the event</param> /// <param name="e">event arguments</param> private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (null != this.sensor) { this.sensor.Stop(); } MainWindow VP = new MainWindow(); VP.Show(); }
/// Execute shutdown tasks /// <param name="sender">object sending the event</param> /// <param name="e">event arguments</param> private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { if (puertoArd.IsOpen == true) { puertoArd.Close(); } MainWindow VP = new MainWindow(); VP.Show(); }