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

            if (country != null)
            {
                country.addTimezone(timezoneName);
            }
        }
예제 #2
0
파일: GPLocation.cs 프로젝트: vijeetgv/GCAL
        public string getCountryName()
        {
            GPCountry ctr = GPCountryList.getShared().GetCountryByCode(countryCode);

            if (ctr != null)
            {
                return(ctr.getName());
            }
            return(string.Empty);
        }
예제 #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]);
         }
     }
 }