Esempio n. 1
0
 /// <summary>
 /// Set address types for specified locale.
 /// </summary>
 /// <param name="addressTypes">Address types.</param>
 /// <param name="locale">Locale.</param>
 /// <returns>Address types for specified locale.</returns>
 protected override void SetAddressTypes(AddressTypeList addressTypes,
                                         ILocale locale)
 {
     lock (AddressTypes)
     {
         AddressTypes[locale.ISOCode] = addressTypes;
     }
 }
        /// <summary>
        /// Get address types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Address types for specified locale.</returns>
        protected virtual AddressTypeList GetAddressTypes(ILocale locale)
        {
            AddressTypeList addressTypes = null;

            if (AddressTypes.ContainsKey(locale.ISOCode))
            {
                addressTypes = (AddressTypeList)(AddressTypes[locale.ISOCode]);
            }
            return(addressTypes);
        }
Esempio n. 3
0
        /// <summary>
        /// Get address types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Address types for specified locale.</returns>
        protected override AddressTypeList GetAddressTypes(ILocale locale)
        {
            AddressTypeList addressTypes = null;

            lock (AddressTypes)
            {
                if (AddressTypes.ContainsKey(locale.ISOCode))
                {
                    addressTypes = (AddressTypeList)(AddressTypes[locale.ISOCode]);
                }
            }
            return(addressTypes);
        }
 /// <summary>
 /// Set address types for specified locale.
 /// </summary>
 /// <param name="addressTypes">Address types.</param>
 /// <param name="locale">Locale.</param>
 protected virtual void SetAddressTypes(AddressTypeList addressTypes,
                                        ILocale locale)
 {
     AddressTypes[locale.ISOCode] = addressTypes;
 }