Пример #1
0
 private void KinectTileButton_Click(object sender, RoutedEventArgs e)
 {
     SelecLevel sl = new SelecLevel(sensorChooser);
     this.sensorChooser.Stop();
     sl.Show();
     this.Close();
 }
Пример #2
0
        private void KinectTileButton_Click(object sender, RoutedEventArgs e)
        {
            SelecLevel sl = new SelecLevel(sensorChooser);

            this.sensorChooser.Stop();
            sl.Show();
            this.Close();
        }
Пример #3
0
        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();
            }
        }
Пример #4
0
        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();
            }
        }