Esempio n. 1
0
        /// <summary>
        /// attempts to start game
        /// </summary>
        private void StartGame(object sender, EventArgs e)
        {
            HttpResponseMessage response = client.GetAsync("/BoggleService.svc/games/" + gameId).Result;
            string result = response.Content.ReadAsStringAsync().Result;

            if (result.Contains("active"))
            {
                timer.Stop();
                board = new BoggleBoard(client, gameId, usertoken, this);
                board.Show();
            }
        }