예제 #1
0
 /// -----------------------------------------------------------------------------------
 /// <summary>
 /// Close the footnote view
 /// </summary>
 /// -----------------------------------------------------------------------------------
 public override void TestTearDown()
 {
     m_footnoteView = null;
     m_footnoteForm.Close();
     m_footnoteForm = null;
     base.TestTearDown();
 }
예제 #2
0
        /// -----------------------------------------------------------------------------------
        /// <summary>
        /// Create a new footnote view
        /// </summary>
        /// -----------------------------------------------------------------------------------
        public override void TestSetup()
        {
            base.TestSetup();
            m_footnoteForm = new DummyFootnoteViewForm();
            m_footnoteForm.DeleteRegistryKey();
            m_footnoteForm.CreateFootnoteView(Cache);

            //Application.DoEvents();
            m_footnoteForm.Show();
            m_footnoteView = m_footnoteForm.FootnoteView;
            Application.DoEvents();
        }
예제 #3
0
        public void Init()
        {
            m_footnoteForm = new DummyFootnoteViewForm();
            m_footnoteForm.DeleteRegistryKey();
            m_footnoteForm.CreateFootnoteView();

            //Application.DoEvents();
            m_footnoteForm.Show();
            m_footnoteView = m_footnoteForm.FootnoteView;
            m_cache        = m_footnoteForm.Cache;
            IScripture scr = m_cache.LangProject.TranslatedScriptureOA;

            Application.DoEvents();
        }
예제 #4
0
 public void CleanUp()
 {
     if (m_cache != null)
     {
         if (m_cache.CanUndo)
         {
             m_cache.Undo();
         }
         if (m_cache.DatabaseAccessor.IsTransactionOpen())
         {
             m_cache.DatabaseAccessor.RollbackTrans();
         }
     }
     else
     {
         Debug.WriteLine("Null cache in cleanup, something went wrong.");
     }
     m_cache        = null;
     m_footnoteView = null;
     m_footnoteForm.Close();
     m_footnoteForm = null;
 }