Beispiel #1
0
 public static void FileNew()
 {
     using (var gsd = new GameSelectionForm())
     {
         gsd.ShowDialog();
         if (gsd.SelectedGameID < 0) return;
         var game = SettingsManager.Games.Single(g => g.ID == gsd.SelectedGameID);
         DocumentManager.AddAndSwitch(new Document(null, new Map(), game));
     }
 }
Beispiel #2
0
 private static void LoadFile(string fileName)
 {
     using (var gsd = new GameSelectionForm())
     {
         gsd.ShowDialog();
         if (gsd.SelectedGameID < 0)
         {
             return;
         }
         var game = SettingsManager.Games.Single(g => g.ID == gsd.SelectedGameID);
         LoadFileGame(fileName, game);
     }
 }
Beispiel #3
0
 public static void FileNew()
 {
     using (var gsd = new GameSelectionForm())
     {
         gsd.ShowDialog();
         if (gsd.SelectedGameID < 0)
         {
             return;
         }
         var game = SettingsManager.Games.Single(g => g.ID == gsd.SelectedGameID);
         DocumentManager.AddAndSwitch(new Document(null, new Map(), game));
     }
 }
Beispiel #4
0
 private static void LoadFile(string fileName)
 {
     using (var gsd = new GameSelectionForm())
     {
         gsd.ShowDialog();
         if (gsd.SelectedGameID < 0) return;
         var game = SettingsManager.Games.Single(g => g.ID == gsd.SelectedGameID);
         LoadFileGame(fileName, game);
     }
 }