Пример #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();
        }
Пример #2
0
        private async void timer1_Tick(object sender, EventArgs e)
        {
            waitingTime++;
            if (waitingTime == 31)
            {
                await HubService.AcceptInvite(userName, false);

                this.Close();
            }
        }
Пример #3
0
        private async void button2_Click(object sender, EventArgs e)
        {
            await HubService.AcceptInvite(userName, false);

            this.Close();
        }