/// <summary>
        ///     Adds a collection of symbols to this symbol collection.
        /// </summary>
        /// <param name="symbols">The symbols to add.</param>
        public void AddSymbols(LocaleSymbolCollection symbols)
        {
            foreach (var symbol in symbols._charReplacements)
                _charReplacements[symbol.Key] = symbol.Value;

            foreach (var str in symbols._stringReplacements)
                _stringReplacements[str.Key] = str.Value;
        }
        /// <summary>
        ///     Adds a collection of symbols to this symbol collection.
        /// </summary>
        /// <param name="symbols">The symbols to add.</param>
        public void AddSymbols(LocaleSymbolCollection symbols)
        {
            foreach (var symbol in symbols._charReplacements)
            {
                _charReplacements[symbol.Key] = symbol.Value;
            }

            foreach (var str in symbols._stringReplacements)
            {
                _stringReplacements[str.Key] = str.Value;
            }
        }
示例#3
0
		public LocaleEditor(GameLanguage language, ICacheFile cache, IStreamManager streamManager, Trie stringIdTrie,
			LocaleSymbolCollection symbols)
		{
			InitializeComponent();

			_currentLanguage = language;
			_cache = cache;
			_streamManager = streamManager;
			_symbols = symbols;
			StringIDTrie = stringIdTrie;

			// Thread the loading routine
			var thrd = new Thread(LoadAll);
			thrd.SetApartmentState(ApartmentState.STA);
			thrd.Start();
		}