private void Upgrade_Click(object sender, RoutedEventArgs e) { Upgrades dialog = new Upgrades(Starship); dialog.ShowDialog(); UpdateBackgrounds(); }