private void Button_Click_1(object sender, RoutedEventArgs e) { var secondLevel = new LevelSecond(); this.Close(); secondLevel.Show(); }
private void ButtonToMoveNextLevelIfTrueAnswer(object sender, RoutedEventArgs e) { LevelSecond levelSecond = new LevelSecond(); if (GoNextLevel) { this.Close(); cakeBoyInMenu.Stop(); levelSecond.Show(); } else { System.Windows.MessageBox.Show("Вы ответили неверно"); } }