Exemple #1
0
        public FwProject(LfMergeSettings settings, string database)
        {
            // We don't want to use a global writing system store, so we insert a null singleton
            if (!SingletonsContainer.Contains <CoreGlobalWritingSystemRepository>())
            {
                SingletonsContainer.Add(typeof(CoreGlobalWritingSystemRepository).FullName, null);
            }

            _project = new ProjectIdentifier(settings.LcmDirectorySettings, database);
            _lcmUi   = new ConsoleLcmUi(_progress.SynchronizeInvoke);
            Cache    = TryGetLcmCache();
            if (Cache != null)
            {
                ServiceLocator = new FwServiceLocatorCache(Cache.ServiceLocator);
            }
        }
Exemple #2
0
 static SpellingHelper()
 {
     // The SingletonToDispose will be disposed during system shutdown.
     // This will clear m_spellers and properly dispose of all the engines (and the C++ memory they allocate).
     SingletonsContainer.Add(new SingletonToDispose());
 }
 /// <summary>
 /// Installs this fake keyboard controller instead of the real one
 /// </summary>
 public static void Install()
 {
     SingletonsContainer.Add(typeof(IKeyboardController).FullName, new FakeKeyboardController());
 }