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);
             }
         }
     }
     ;
 }
예제 #2
0
 internal DictionaryModelWrapper(Guid key, string itemKey, DictionaryModel parentModel = null)
     : base(itemKey, parentModel)
 {
     Key = key;
 }
예제 #3
0
 public DictionaryModelWrapper(IDictionaryItem dictionaryItem, DictionaryModel parentModel = null)
     : this(dictionaryItem.Key, dictionaryItem.ItemKey, parentModel)
 {
 }