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