Beispiel #1
0
 /// -----------------------------------------------------------------------------------
 /// <summary>
 /// Close the draft view
 /// </summary>
 /// -----------------------------------------------------------------------------------
 public override void TestTearDown()
 {
     m_draftView = null;
     m_draftForm.Close();
     m_draftForm = null;
     base.TestTearDown();
 }
        public override void Exit()
        {
            CheckDisposed();

            m_draftView = null;
            m_draftForm.Close();
            m_draftForm = null;

            base.Exit();
        }
        public override void Exit()
        {
            CheckDisposed();

            m_draftView = null;
            m_draftForm.Close();
            m_draftForm = null;
            m_group     = null;
            m_IgnorePropChanged.Dispose();
            m_IgnorePropChanged = null;

            // Restore prompt setting
            m_IgnorePropChanged.Dispose();
            base.Exit();
        }
Beispiel #4
0
 public void CleanUp()
 {
     CheckDisposed();
     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_draftView = null;
     m_draftForm.Close();
     m_draftForm = null;
 }