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