private void KinectTileButton_Click(object sender, RoutedEventArgs e) { SelecLevel sl = new SelecLevel(sensorChooser); this.sensorChooser.Stop(); sl.Show(); this.Close(); }
private void KinectTileButton_Click_2(object sender, RoutedEventArgs e) { this.playerpos = Convert.ToInt64(player.GetValue(Canvas.TopProperty)); this.busapos = Convert.ToInt64(busa.GetValue(Canvas.TopProperty)); Canvas.SetTop(player, playerpos - 100); score += 10; this.MyProperty1 = score.ToString(); //MessageBox.Show(""+score); if (playerpos == 21) { MessageBox.Show("Congratulation! Your score is " + score); SelecLevel sl = new SelecLevel(sensorChooser); this.sensorChooser.Stop(); sl.Show(); this.Close(); } }
private void KinectTileButton_Click_2(object sender, RoutedEventArgs e) { this.playerpos = Convert.ToInt64(player.GetValue(Canvas.TopProperty)); this.busapos = Convert.ToInt64(busa.GetValue(Canvas.TopProperty)); Canvas.SetTop(player, playerpos - 100); score += 10; this.MyProperty1 = score.ToString(); //MessageBox.Show(""+score); if (playerpos == 21){ MessageBox.Show("Congratulation! Your score is "+score); SelecLevel sl = new SelecLevel(sensorChooser); this.sensorChooser.Stop(); sl.Show(); this.Close(); } }