/// <summary> /// Update current <see cref="Chart.Country"/> /// </summary> /// <param name="countryType">Name of the country</param> /// <param name="continent">Continent</param> /// <returns>current <see cref="Chart"/></returns> public Chart UpdateCountry(CountryType countryType, Continent continent) { if (this.Country == null || this.Country.Name != countryType.Name || this.Country.Continent != continent) { this.Country = new Country(countryType, continent); } return(this); }
internal Country(CountryType countryType, Continent continent) { Validate(countryType.Name, continent); Name = countryType.Name; Continent = continent; }