Exemplo n.º 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));
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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));
     }
 }
Exemplo n.º 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);
     }
 }