Ejemplo n.º 1
0
        public Form1()
        {
            fData = new FOnData(OnData);
            GC.KeepAlive(fData);


            fConnect = new FOnConnect(OnConnect);
            GC.KeepAlive(fConnect);

            fDisconnect = new FOnConnect(OnDisconnect);
            GC.KeepAlive(fDisconnect);

            fComplete = new FOnComplete(OnComplete);
            GC.KeepAlive(fComplete);

            InitializeComponent();
        }
Ejemplo n.º 2
0
        //----------------------------------------------------------------------
        // 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 RegisterOnCompleteCallBack(FOnComplete Complete);