public City(string countryCode, string name, string countryFlagImageUrl, Country countryOwner) { CountryCode = countryCode; Name = name; CountryFlagImageUrl = countryFlagImageUrl; //temp CountryOwner = countryOwner; //temp TemperatureMin = 666; TemperatureMax = 666; TemperatureAvg = 666; CloudinessAvg = 666; GenerateRandomWeatherValues(); }
private bool IsCountryBelongToSelectedContinent(Country country) { // Meta Continent: "Whole World" if (SelectedContinentId == 0) return true; // Meta Country: "Any Country" if (country.ContinentId == ContinentsEnum.Special) return true; return country.ContinentId == (ContinentsEnum)(SelectedContinentId - 1); }