public void addTimezone(string countryCode, string timezoneName) { GPCountry country = GetCountryByCode(countryCode); if (country != null) { country.addTimezone(timezoneName); } }
public string getCountryName() { GPCountry ctr = GPCountryList.getShared().GetCountryByCode(countryCode); if (ctr != null) { return(ctr.getName()); } return(string.Empty); }
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]); } } }