Пример #1
0
        private Region(string country, string region)
        {

            this.Country = Country.GetCountry(country);
            this.Name = region;
           
        }
Пример #2
0
 public static Country GetCountry(string name)
 {
     try
     {
         return II.CurentII.Countries[name];
     }
     catch 
     {
         Country country = new Country(name);
         II.CurentII.Countries[name] = country;
         II.CurentII.Regions[name] = new Dictionary<string, Region>();
         return country;
     }
 }
Пример #3
0
 public static Region GetRegion(Country country, string region) 
 {
     return GetRegion(country.Name,region);
 }
Пример #4
0
 private Region(Country country, string region)
 {
     this.Country = country;
     this.Name = region;
     
 }