/// ----------------------------------------------------------------------------------- /// <summary> /// Close the footnote view /// </summary> /// ----------------------------------------------------------------------------------- public override void TestTearDown() { m_footnoteView = null; m_footnoteForm.Close(); m_footnoteForm = null; base.TestTearDown(); }
/// ----------------------------------------------------------------------------------- /// <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(); }
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(); }
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; }