private void botonAudio_VEjemplos_Click(object sender, RoutedEventArgs e)
        {
            CompositionTarget.Rendering -= this.UpdateEnergy;

            if (this.reader != null)
            {
                // AudioBeamFrameReader is IDisposable
                this.reader.Dispose();
                this.reader = null;
            }
/*            if (this.kinectSensor != null)
            {
                this.kinectSensor.Close();
                this.kinectSensor = null;
            }
*/
            VentanaEjemplosKinect v = new VentanaEjemplosKinect();
            v.Show();
            this.Close();
        }
Ejemplo n.º 2
0
 private void botonJugar_VInicioJuego_Click(object sender, RoutedEventArgs e)
 {
     VentanaEjemplosKinect v = new VentanaEjemplosKinect();
     v.Show();
     this.Close();
 }
 private void BotonSalir_VN_click(object sender, RoutedEventArgs e)
 {
     if (KBody.BFReader != null)
     {
         KBody.BFReader.Dispose();                // BodyFrameReader is IDisposable
         KBody.BFReader = null;
     }
     /*////////  if (this.kinectSensor != null) {   this.kinectSensor.Close(); this.kinectSensor = null;  } /////// */
     VentanaEjemplosKinect v = new VentanaEjemplosKinect();
     v.Show();
     this.Close();
 }