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); } }
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)); } }