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