/// <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 virtual PictureRelationDataTypeList GetPictureRelationDataTypes(ILocale locale) { PictureRelationDataTypeList pictureRelationDataTypes = null; if (PictureRelationDataTypes.ContainsKey(locale.ISOCode)) { pictureRelationDataTypes = (PictureRelationDataTypeList)(PictureRelationDataTypes[locale.ISOCode]); } return(pictureRelationDataTypes); }
/// <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 virtual void SetPictureRelationDataTypes(PictureRelationDataTypeList pictureRelationDataTypes, ILocale locale) { PictureRelationDataTypes[locale.ISOCode] = pictureRelationDataTypes; }