internal DictionaryModel(string itemKey, DictionaryModel parentModel) { _itemKey = itemKey; _parentModel = parentModel; if (_resolver == null) { _resolver = culture => { try { return(Current.CultureDictionaryFactory.CreateDictionary()); } catch (Exception exception) { Log.Error(exception, "Error trying to create an ICultureDictionary"); return(null); } } } ; }
internal DictionaryModelWrapper(Guid key, string itemKey, DictionaryModel parentModel = null) : base(itemKey, parentModel) { Key = key; }
public DictionaryModelWrapper(IDictionaryItem dictionaryItem, DictionaryModel parentModel = null) : this(dictionaryItem.Key, dictionaryItem.ItemKey, parentModel) { }