コード例 #1
0
        public void Init()
        {
            CheckDisposed();
            m_builder = new DummySFFileListBuilder();
            m_cache   = FdoCache.Create("TestLangProj");

            if (!m_cache.DatabaseAccessor.IsTransactionOpen())
            {
                m_cache.DatabaseAccessor.BeginTrans();
            }

            m_cache.BeginUndoTask("Undo SfFileListBuilderTest", "Redo SfFileListBuilderTest");

            m_settings = new ScrImportSet();
            m_cache.LangProject.TranslatedScriptureOA.DefaultImportSettings = m_settings;
        }
コード例 #2
0
        public void CleanUp()
        {
            CheckDisposed();
            m_builder = null;
            m_cache.ActionHandlerAccessor.EndOuterUndoTask();
            m_settings = null;

            while (m_cache.Undo())
            {
                ;
            }

            if (m_cache.DatabaseAccessor.IsTransactionOpen())
            {
                m_cache.DatabaseAccessor.RollbackTrans();
            }

            m_cache.Dispose();
            m_cache = null;
        }