Esempio n. 1
0
        private void InitializeStorage()
        {
            _phrases = new List <LangResource>()
            {
                new LangResource {
                    Key  = PhraseKey,
                    Pool = _phrasesEng
                },
                new LangResource {
                    Key  = FormattedKey,
                    Pool = _formattedValues
                },
                new LangResource {
                    Key  = FormattedMultipleKey,
                    Pool = _formattedMultipleValues
                }
            }.ToArray();

            var phrasesInEs = new List <LangResource>()
            {
                new LangResource {
                    Key  = PhraseKey,
                    Pool = _phrasesEs
                }
            }.ToArray();

            _storage.StoreObject(_phrases, Collection, "PhrasesEn");
            _storage.StoreObject(phrasesInEs, Collection, "PhrasesEs");
        }
Esempio n. 2
0
 private void InitializeStorage()
 {
     storage.StoreObject(PhraseValue, Collection, PhraseKey);
     storage.StoreObject(FormattedValue, Collection, FormattedKey);
     storage.StoreObject(
         FormattedMultipleValue,
         Collection,
         FormattedMultipleKey);
 }