/// <summary> /// Loads up the starting datas for the program /// </summary> /// <returns></returns> private async Task LoadDefaultData() { CountryObj toPull; toPull = CountrySelect.ReturnCountryObj("United Kingdom", allCountries); if (toPull != null) { await PullData(toPull, Color.Red); } toPull = CountrySelect.ReturnCountryObj("Italy", allCountries); if (toPull != null) { await PullData(toPull, Color.Purple); } toPull = CountrySelect.ReturnCountryObj("United States of America", allCountries); if (toPull != null) { await PullData(toPull, Color.Green); } toPull = CountrySelect.ReturnCountryObj("Sri Lanka", allCountries); if (toPull != null) { await PullData(toPull, Color.Blue); } }
/// <summary> /// Event for openeing the country select form /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void countrySelect_btn_Click(object sender, EventArgs e) { CountrySelect win = new CountrySelect(this, allCountries); win.Show(); }