コード例 #1
0
 /// <summary>
 /// Form closing event. Call the Complete method to end the command.
 /// </summary>
 private void cmdClose_Click(object sender, EventArgs e)
 {
     m_EmbeddedDT.Cleanup();
     m_EmbeddedDT.FormClosing    -= cmdClose_Click;
     m_EmbeddedDT.cmdClose.Click -= cmdClose_Click;
     m_EmbeddedDT.Close();
     m_CustomCommandHelper.Complete();
 }
コード例 #2
0
ファイル: ccGuying.cs プロジェクト: git786hub/DLL
 public void Terminate()
 {
     try
     {
         m_Application                   = null;
         m_TransactionManager            = null;
         m_CustomCommandHelper           = null;
         m_EmbeddedDT.Application        = null;
         m_EmbeddedDT.TransactionManager = null;
         if (m_EmbeddedDT != null)
         {
             m_EmbeddedDT.Close();
             m_EmbeddedDT = null;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(m_Application.ApplicationWindow, ex.Message, ConstantsDT.APPLICATION_NAME, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }