Exemple #1
0
        public void addTimezone(string countryCode, string timezoneName)
        {
            GPCountry country = GetCountryByCode(countryCode);

            if (country != null)
            {
                country.addTimezone(timezoneName);
            }
        }
Exemple #2
0
        public string getCountryName()
        {
            GPCountry ctr = GPCountryList.getShared().GetCountryByCode(countryCode);

            if (ctr != null)
            {
                return(ctr.getName());
            }
            return(string.Empty);
        }
Exemple #3
0
 public override void InsertNewObjectFromStrings(string[] parts, FileKey fk)
 {
     if (fk == FileKey.Primary)
     {
         if (parts.Length >= 2 && parts[0].Length > 0)
         {
             GPCountry location = new GPCountry();
             location.setCode(parts[0]);
             location.setName(parts[1]);
             countries.Add(location);
         }
     }
     else
     {
         if (parts.Length == 2)
         {
             addTimezone(parts[0], parts[1]);
         }
     }
 }