/// <summary> /// Command has terminated. Release the objects. /// </summary> public void Terminate() { try { m_Application = null; m_TransactionManager = null; m_CustomCommandHelper = null; m_EmbeddedDT.Application = null; m_EmbeddedDT.TransactionManager = null; m_EmbeddedDT = null; } catch (Exception ex) { MessageBox.Show(m_Application.ApplicationWindow, ex.Message, ConstantsDT.APPLICATION_NAME, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } }