public MapWindow() { InitializeComponent(); this.WindowState = WindowState.Maximized; InitializeSystemList(); if (File.Exists(App.Configuration.CurrentGameFileName)) { LoadGameData(App.Configuration.CurrentGameFileName); } else { GameData = new Game(); } }
private void MapSizeClicked(object sender, RoutedEventArgs e) { MenuItem menuItem = sender as MenuItem; int size = Convert.ToInt32(menuItem.Tag); GameData = new Game(size); }