private void startGameButton_Click(object sender, EventArgs e) { GameForm gameForm = new GameForm(getGame()); this.Close(); gameForm.ShowDialog(); }
public static void Main() { Application.EnableVisualStyles(); ConfigForm configForm = new ConfigForm(); configForm.ShowDialog(); Game game = configForm.getGame(); GameForm gameForm = new GameForm(game); gameForm.ShowDialog(); }