private void BackButtonClicked(object sender, RoutedEventArgs e) { ScenarioSelect scenarioSelect = new ScenarioSelect(); MainResources.MainWindow.MainPanel.Children.Add(scenarioSelect); MainResources.MainWindow.MainPanel.Children.Remove(this); }
public MainMenu() { InitializeComponent(); _scenarioSelect = new ScenarioSelect(); _gameSettings = new GameSettingsScreen(this); BitmapImage bitmapImage = new BitmapImage(new Uri(Path.Combine("file:///", Directory.GetCurrentDirectory(), @"Assets\game_logo.png"))); MainMenuImage1.Source = bitmapImage; BitmapImage bitmapImage2 = new BitmapImage(new Uri(Path.Combine("file:///", Directory.GetCurrentDirectory(), @"Assets\mainmenu_bg.png"))); MainMenuBGImage.ImageSource = bitmapImage2; StartAnimateBGImages(); MainResources.MainWindow.NullVideos(); }