/// <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; } }
/// <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); }
/// <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); }
/// <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; }