예제 #1
0
        /// <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);
        }
예제 #2
0
 internal Country(CountryType countryType, Continent continent)
 {
     Validate(countryType.Name, continent);
     Name      = countryType.Name;
     Continent = continent;
 }