예제 #1
0
 //+------------------------------------------------------------------+
 //| GC destructor                                                    |
 //+------------------------------------------------------------------+
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         //--- release IMTRequest object
         if (m_request != null)
         {
             m_request.Dispose();
             m_request = null;
         }
         //--- release IMTConfirm object
         if (m_confirm != null)
         {
             m_confirm.Dispose();
             m_confirm = null;
         }
         //---
         if (m_dealer != null)
         {
             m_dealer.Dispose();
             m_dealer = null;
         }
         //---
         if (components != null)
         {
             components.Dispose();
         }
     }
     //---
     base.Dispose(disposing);
 }
예제 #2
0
 //+------------------------------------------------------------------+
 //| Constructor                                                      |
 //+------------------------------------------------------------------+
 public CDealerExampleDlg()
 {
     InitializeComponent();
     //---
     m_dealer = new CDealer();
 }