Exemplo n.º 1
0
        private async void button1_Click(object sender, EventArgs e)
        {
            await HubService.AcceptInvite(userName, true);

            UserProfile.Level     = Levels.DictionaryLevels[levelName];
            UserProfile.RivalName = userName;
            this.Close();
        }
Exemplo n.º 2
0
        private async void timer1_Tick(object sender, EventArgs e)
        {
            waitingTime++;
            if (waitingTime == 31)
            {
                await HubService.AcceptInvite(userName, false);

                this.Close();
            }
        }
Exemplo n.º 3
0
        private async void button2_Click(object sender, EventArgs e)
        {
            await HubService.AcceptInvite(userName, false);

            this.Close();
        }