private void enterButton_Click(object sender, EventArgs e) { LolInfo.APIKEY = apiKeyTextBox.Text; InfoGrabber grabber = new InfoGrabber("na", LolInfo.APIKEY); //Dictionary<string, Summoner> summoners = new InfoGrabber().LookupSummonersByID("na", ); try { //IDictionary<string, List<League>> leagueGroups = new InfoGrabber().GetLeague("na", 2); //RecentGamesCollection games = new InfoGrabber().GetRecentGames("na", 2); LolInfo.ChampionCollection = grabber.GetChampions(); ItemList list = grabber.GetItems(); this.Close(); } catch (WebException ex) { MessageBox.Show("Invalid apikey"); } }