예제 #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();
     }
 }
예제 #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();
     }
 }
예제 #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();
            }
        }
예제 #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();
     }
 }
예제 #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();
            }
        }