private void newGameToolStripMenuItem_Click(object sender, EventArgs e) { NewGame window = new NewGame(game); if (window.ShowDialog(this) == DialogResult.OK) { this.player = game.StartGame(window.CharacterNameTextBox()); this.UpdateText(); } }
private void newgame() { NewGame window = new NewGame(); if (window.ShowDialog(this) == DialogResult.OK) { GameMenu game = new GameMenu(SimpleGame.Logic.Game.StartGame(window.CharacterNameTextBox())); this.Hide(); game.Show(); } }
private void newGameToolStripMenuItem_Click(object sender, EventArgs e) { NewGame window = new NewGame(); if (window.ShowDialog(this) == DialogResult.OK) { this.player = Game.StartGame(window.CharacterNameTextBox()); this.UpdateText(); } }
private void newgame() { NewGame window = new NewGame(game); if (window.ShowDialog(this) == DialogResult.OK) { var player = game.StartGame(window.CharacterNameTextBox()); GameMenu gameMenu = new GameMenu(game, itemGenerator, player, monsterRepository); this.Hide(); gameMenu.Show(); } }