//---------------------------------------------------------------------- // Component Event //----------------------------------------------------------------------\ private void TradeStationControl_Load(object sender, EventArgs e) { Log = new Logger(); fOnTSActiveOrder = new FOnTSActiveOrder(OnTSActiveOrder); GC.KeepAlive(fOnTSActiveOrder); Log.Write("NEW fOnTSActiveOrder and KeepAlive"); fOnTSCanceledOrder = new FOnTSCanceledOrder(OnTSCanceledOrder); GC.KeepAlive(fOnTSCanceledOrder); fOnTSFilledOrder = new FOnTSFilledOrder(OnTSFilledOrder); GC.KeepAlive(fOnTSFilledOrder); }
public static extern int RegisterOnTSCanceledOrderCallBack(FOnTSCanceledOrder OnTSCanceledOrder);