Example #1
0
        private void button2_Click_1(object sender, EventArgs e)
        {
            if (requestHandler.checkHasGameStarted())
            {
                buttonPollMD.Enabled = true;
                buttonPoll.Enabled   = true;
                button2.Enabled      = false;
                timerForLobby.Stop();
                MessageBox.Show("Game Started");

                timerForPollingState.Interval = 5000;//5 second polling
                timerForPollingState.Tick    += new EventHandler(buttonPollMD_Click);
                timerForPollingState.Start();
                buttonPollMD_Click(null, null);
            }
            //Update Lobbies state
            button9_Click(null, null);
        }