public void StartEditor(int x, int y, bool editExisting, string file) { game = new Game(); if (editExisting == false) { int[] grid = game.CreateGridBlank(x, y); game.Set(grid); editorForm.Initialise(game, this, x, y, true); editorForm.GenerateGrid(); editorForm.ShowDialog(); } else { game.FromCSV(file, false); editorForm.Initialise(game, this, x, y, false); editorForm.GenerateGrid(); editorForm.ShowDialog(); } }