Пример #1
0
        public static CountryBindingWraper CreateFromCountryCode(string countryCode)
        {
            if (string.IsNullOrWhiteSpace(countryCode))
            {
                throw new ArgumentException("Код страны не может быть пустым!");
            }
            string index = countryCode.ToLower();

            if (!CountryBindingWraper._countries.ContainsKey(index))
            {
                index = "none";
            }
            return(CountryBindingWraper.CreaterNewEntry(index, CountryBindingWraper._countries[index]));
        }
Пример #2
0
 public string GetImagePath()
 {
     return(CountryBindingWraper.GetImagePath(this.CountryCode));
 }