Example #1
0
 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();
     }
 }
Example #2
0
 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();
     }
 }
Example #3
0
        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();
            }
        }
Example #4
0
 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();
     }
 }
Example #5
0
        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();
            }
        }