Ejemplo n.º 1
0
        private void SkipButton_Click(object sender, RoutedEventArgs e)
        {
            Level_1_Fight_2 s = new Level_1_Fight_2();

            s.Show();
            this.Close();
        }
Ejemplo n.º 2
0
        public void winLose(bool outcome)
        {
            if (isOver == false)
            {
                isOver = true;

                if (outcome == true)
                {
                    EnemyImgBox.Source = new BitmapImage(new Uri("../CodeDay/Victory.png", UriKind.Relative));
                    MessageBoxResult f = MessageBox.Show("You won", "Continue?", MessageBoxButton.YesNo);
                    if (f == MessageBoxResult.Yes)
                    {
                        Level_1_Fight_2 s = new Level_1_Fight_2();
                        s.Show();
                        this.Close();
                    }
                }
                else
                {
                    MoveDescriptionBlock.Text = "You lost";
                    CharImgBox.Source         = new BitmapImage(new Uri("../CodeDay/Defeat.png", UriKind.Relative));
                    MessageBox.Show("You lost", "", MessageBoxButton.OK);
                    //this.Close();
                }
            }
        }