Beispiel #1
0
        private void button4_Click(object sender, EventArgs e)
        {
            GameBoardForm gameBoardForm = new GameBoardForm();

            gameBoardForm.Show();

            gameBoardForm.Start(Convert.ToInt32(GameId.Text));
        }
Beispiel #2
0
        private void createBtn_Click(object sender, EventArgs e)
        {
            //Handle Error
            ServiceResponse serviceResponse = GameService.Start();
            GameBoardForm   gameBoardForm   = new GameBoardForm();

            gameBoardForm.Show();

            gameBoardForm.Start((serviceResponse.Data as GameDetails).Game.Id);
        }
Beispiel #3
0
 public Game(GameBoardForm gameBoardForm)
 {
     Dice             = gameBoardForm.Dice;
     Dice.DiceRolled += this.dice_Rolled;
     GameBoardForm    = gameBoardForm;
 }