//---------------------------------------------------------------------- // Component Event //---------------------------------------------------------------------- private void Main_Load(object sender, EventArgs e) { fData = new FOnData(OnData); GC.KeepAlive(fData); fOrderAsync = new FOnOrderAsyncReport(OnOrderAsyncReport); GC.KeepAlive(fOrderAsync); fConnect = new FOnConnect(OnConnect); GC.KeepAlive(fConnect); fDisconnect = new FOnConnect(OnDisconnect); GC.KeepAlive(fDisconnect); fComplete = new FOnComplete(OnComplete); GC.KeepAlive(fComplete); fOnExecutionReport = new FOnGetExecutionReoprt(OnExecutionReport); GC.KeepAlive(fOnExecutionReport); GC.SuppressFinalize(fOnExecutionReport); }
public static extern int RegisterOnExecutionReportCallBack(FOnGetExecutionReoprt ExecutionReport);