private void newGameBTN_Click(object sender, RoutedEventArgs e) { this.Logic = new SpaceInvaderLogic.GameLogic(Settings.GameStateXML); MainWindow window = new MainWindow(); window.ShowDialog(); }
private void LoadGameBTN_Click(object sender, RoutedEventArgs e) { OpenFileDialog ofd = new OpenFileDialog(); if (ofd.ShowDialog() == true) { this.Logic = new SpaceInvaderLogic.GameLogic(ofd.FileName); //GlobalSettings.Settings.GameStateXML = ofd.FileName; } MainWindow window = new MainWindow(); window.ShowDialog(); }
public PauseWindow(SpaceInvaderLogic.GameLogic logic) { InitializeComponent(); this.logic = logic; }