/// <summary>
 /// Set picture relation data types for specified locale.
 /// </summary>
 /// <param name="pictureRelationDataTypes">Picture relation data types.</param>
 /// <param name="locale">The locale.</param>
 protected override void SetPictureRelationDataTypes(PictureRelationDataTypeList pictureRelationDataTypes,
                                                     ILocale locale)
 {
     lock (PictureRelationDataTypes)
     {
         PictureRelationDataTypes[locale.ISOCode] = pictureRelationDataTypes;
     }
 }
        /// <summary>
        /// Get picture relation data types for specified locale.
        /// </summary>
        /// <param name="locale">The locale.</param>
        /// <returns>Picture relation data types for specified locale.</returns>
        protected override PictureRelationDataTypeList GetPictureRelationDataTypes(ILocale locale)
        {
            PictureRelationDataTypeList pictureRelationDataTypes = null;

            lock (PictureRelationDataTypes)
            {
                if (PictureRelationDataTypes.ContainsKey(locale.ISOCode))
                {
                    pictureRelationDataTypes = (PictureRelationDataTypeList)(PictureRelationDataTypes[locale.ISOCode]);
                }
            }

            return(pictureRelationDataTypes);
        }