Пример #1
0
 public ASP()
 {
     InitializeComponent();
     tl = new TradeLink_Client_WM("ASPclient", true);
     // don't save ticks from replay since they're already saved
     archivetickbox.Checked = tl.LinkType != TLTypes.HISTORICALBROKER;
     tl.gotTick += new TickDelegate(tl_gotTick);
     tl.gotFill += new FillDelegate(tl_gotFill);
     this.FormClosing += new FormClosingEventHandler(ASP_FormClosing);
     status(Util.TLSIdentity());
 }
Пример #2
0
        public TestTradeLink_WM() 
        {
            s = new TradeLink_Server_WM();
            c = new TradeLink_Client_WM("testtradelink",false);

            // register server events (so server can process orders)
            s.gotSrvFillRequest += new OrderDelegate(tl_gotSrvFillRequest);

            // setup client events
            c.gotFill += new FillDelegate(tlclient_gotFill);
            c.gotOrder += new OrderDelegate(tlclient_gotOrder);
            c.gotTick += new TickDelegate(tlclient_gotTick);

        }