Ejemplo n.º 1
0
 /// <summary>
 /// Set lump split event types for specified locale.
 /// </summary>
 /// <param name="lumpSplitEventTypes">Reference relation types.</param>
 /// <param name="locale">Locale.</param>
 protected override void SetLumpSplitEventTypes(LumpSplitEventTypeList lumpSplitEventTypes,
                                                ILocale locale)
 {
     lock (LumpSplitEventTypes)
     {
         LumpSplitEventTypes[locale.ISOCode] = lumpSplitEventTypes;
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Get lump split event types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Lump split event types for specified locale.</returns>
        protected virtual LumpSplitEventTypeList GetLumpSplitEventTypes(ILocale locale)
        {
            LumpSplitEventTypeList lumpSplitEventTypes = null;

            if (LumpSplitEventTypes.ContainsKey(locale.ISOCode))
            {
                lumpSplitEventTypes = (LumpSplitEventTypeList)(LumpSplitEventTypes[locale.ISOCode]);
            }
            return(lumpSplitEventTypes);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Get lump split event types for specified locale.
        /// </summary>
        /// <param name="locale">Locale.</param>
        /// <returns>Lump split event types for specified locale.</returns>
        protected override LumpSplitEventTypeList GetLumpSplitEventTypes(ILocale locale)
        {
            LumpSplitEventTypeList lumpSplitEventTypes = null;

            lock (LumpSplitEventTypes)
            {
                if (LumpSplitEventTypes.ContainsKey(locale.ISOCode))
                {
                    lumpSplitEventTypes = (LumpSplitEventTypeList)(LumpSplitEventTypes[locale.ISOCode]);
                }
            }
            return(lumpSplitEventTypes);
        }
Ejemplo n.º 4
0
 /// <summary>
 /// Set lump split event types for specified locale.
 /// </summary>
 /// <param name="lumpSplitEventTypes">Reference relation types.</param>
 /// <param name="locale">Locale.</param>
 protected virtual void SetLumpSplitEventTypes(LumpSplitEventTypeList lumpSplitEventTypes,
                                               ILocale locale)
 {
     LumpSplitEventTypes[locale.ISOCode] = lumpSplitEventTypes;
 }