private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            var secondLevel = new LevelSecond();

            this.Close();
            secondLevel.Show();
        }
Пример #2
0
        private void ButtonToMoveNextLevelIfTrueAnswer(object sender, RoutedEventArgs e)
        {
            LevelSecond levelSecond = new LevelSecond();

            if (GoNextLevel)
            {
                this.Close();
                cakeBoyInMenu.Stop();
                levelSecond.Show();
            }
            else
            {
                System.Windows.MessageBox.Show("Вы ответили неверно");
            }
        }