Ejemplo n.º 1
0
 private void StartButtonClick(object sender, RoutedEventArgs e)
 {
     #if (DEBUG)
     Console.WriteLine("Start button clicked!");
     #endif
     ButtonZonesScreen bzs = new ButtonZonesScreen(this.mainWindow, this.sensorChooser);
     // Clear the binding
     BindingOperations.ClearBinding(this.kRegion, KinectRegion.KinectSensorProperty);
     // Show the desired screen
     bzs.Show();
 }
Ejemplo n.º 2
0
 void NavButtonClick(object sender, RoutedEventArgs e)
 {
     if (((KinectTileButton)sender).Name == Constants.ViewNames.TitleScreen.ToString())
     {
         TitleScreen ts = new TitleScreen(this.mainWindow, this.sensorChooser);
         // Clear the binding
         BindingOperations.ClearBinding(this.kRegion, KinectRegion.KinectSensorProperty);
         // Show the desired screen
         ts.Show();
     }
     if (((KinectTileButton)sender).Name == Constants.ViewNames.TimeZoneScreen.ToString())
     {
         ButtonZonesScreen bzs = new ButtonZonesScreen(this.mainWindow, this.sensorChooser);
         // Clear the binding
         BindingOperations.ClearBinding(this.kRegion, KinectRegion.KinectSensorProperty);
         // Show the desired screen
         bzs.Show();
     }
     if (((KinectTileButton)sender).Name == Constants.ViewNames.StatesScreen.ToString())
     {
         StatesScreen ss = new StatesScreen(this.mainWindow, this.sensorChooser, this.state.TimeZone);
         // Clear the binding
         BindingOperations.ClearBinding(this.kRegion, KinectRegion.KinectSensorProperty);
         // Show the desired screen
         ss.Show();
     }
     if (((KinectTileButton)sender).Name == Constants.ViewNames.VehicleScreen.ToString())
     {
         VehicleScreen vs = new VehicleScreen(this.mainWindow, this.sensorChooser, this.state);
         // Clear the binding
         BindingOperations.ClearBinding(this.kRegion, KinectRegion.KinectSensorProperty);
         // Show the desired screen
         vs.Show();
     }
 }