Exemplo n.º 1
0
        public void Init(DictionaryManagerOptions options)
        {
            if (options == null)
            {
                throw new NullReferenceException("XmlDictionaryOptions");
            }

            foreach (OneFileSettings xmlDictionaryOptions in options.XmlDictionariesOptions)
            {
                if (xmlDictionaryOptions.Enabled)
                {
                    XmlDictionary dictionary = new XmlDictionary();
                    dictionary.Init(xmlDictionaryOptions);
                    AddDictionary(dictionary);
                }
            }
            foreach (MrdDictionaryAdapterOptions mrdDictionaryOptions in options.MrdDictionariesOptions)
            {
                if (mrdDictionaryOptions.Enabled)
                {
                    MrdDictionaryAdapter dictionary = new MrdDictionaryAdapter();
                    dictionary.Init(mrdDictionaryOptions);
                    AddDictionary(dictionary);
                }
            }
            IsInited = true;
        }
 public void Init(MrdDictionaryAdapter mrdDictionaryAdapter)
 {
     _MrdDictionaryAdapter = mrdDictionaryAdapter;
 }