private void Form1_Load(object sender, EventArgs e) { apikey = apikeyBox.Text; try { // Get static data Champions = Get_Champions(apikey); ChampionsInv = Get_Champions(apikey, databyid: true); Masteries = Get_Masteries(apikey); Runes = Get_Runes(apikey); Items = Get_Items(apikey); List<string> ver = Get_Version(apikey); verLabel.Text = ver.First(); // Get images/initalize image boxes Get_Mastery_Images(); initPictureBoxes(); } catch (Exception error) { Show_Error(error.Message); } // Temp fix of placement errors // Add options to combobox selectFunctionComboBox.BeginUpdate(); selectFunctionComboBox.Items.Add("Mastery Page By Summoner Champion"); selectFunctionComboBox.Items.Add("Mastery Page By Summoner"); selectFunctionComboBox.Items.Add("Rune Page By Summoner"); selectFunctionComboBox.EndUpdate(); }
private void Form1_Load(object sender, EventArgs e) { apikey = apikeyBox.Text; try { // Get static data Champions = Get_Champions(apikey); ChampionsInv = Get_Champions(apikey, databyid: true); Masteries = Get_Masteries(apikey); Runes = Get_Runes(apikey); Items = Get_Items(apikey); List <string> ver = Get_Version(apikey); verLabel.Text = ver.First(); // Get images/initalize image boxes Get_Mastery_Images(); initPictureBoxes(); } catch (Exception error) { Show_Error(error.Message); } // Temp fix of placement errors // Add options to combobox selectFunctionComboBox.BeginUpdate(); selectFunctionComboBox.Items.Add("Mastery Page By Summoner Champion"); selectFunctionComboBox.Items.Add("Mastery Page By Summoner"); selectFunctionComboBox.Items.Add("Rune Page By Summoner"); selectFunctionComboBox.EndUpdate(); }