Exemple #1
0
 /// <summary>
 /// Set taxon revision event types for specified locale.
 /// </summary>
 /// <param name="taxonRevisionEventTypes">Taxon revision event types.</param>
 /// <param name="locale">Locale.</param>
 protected override void SetTaxonRevisionEventTypes(TaxonRevisionEventTypeList taxonRevisionEventTypes,
                                                    ILocale locale)
 {
     lock (TaxonRevisionEventTypes)
     {
         TaxonRevisionEventTypes[locale.ISOCode] = taxonRevisionEventTypes;
     }
 }
Exemple #2
0
        /// <summary>
        /// Get taxon revision event types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Taxon revision event types for specified locale.</returns>
        protected virtual TaxonRevisionEventTypeList GetTaxonRevisionEventTypes(ILocale locale)
        {
            TaxonRevisionEventTypeList taxonRevisionEventTypes = null;

            if (TaxonRevisionEventTypes.ContainsKey(locale.ISOCode))
            {
                taxonRevisionEventTypes = (TaxonRevisionEventTypeList)(TaxonRevisionEventTypes[locale.ISOCode]);
            }
            return(taxonRevisionEventTypes);
        }
Exemple #3
0
        /// <summary>
        /// Get taxon revision event types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Taxon revision event types for specified locale.</returns>
        protected override TaxonRevisionEventTypeList GetTaxonRevisionEventTypes(ILocale locale)
        {
            TaxonRevisionEventTypeList taxonRevisionEventTypes = null;

            lock (TaxonRevisionEventTypes)
            {
                if (TaxonRevisionEventTypes.ContainsKey(locale.ISOCode))
                {
                    taxonRevisionEventTypes = (TaxonRevisionEventTypeList)(TaxonRevisionEventTypes[locale.ISOCode]);
                }
            }
            return(taxonRevisionEventTypes);
        }
Exemple #4
0
 /// <summary>
 /// Set taxon revision event types for specified locale.
 /// </summary>
 /// <param name="taxonRevisionEventTypes">Taxon revision event types.</param>
 /// <param name="locale">Locale.</param>
 protected virtual void SetTaxonRevisionEventTypes(TaxonRevisionEventTypeList taxonRevisionEventTypes,
                                                   ILocale locale)
 {
     TaxonRevisionEventTypes[locale.ISOCode] = taxonRevisionEventTypes;
 }