static void client_TickRecieved(object sender, TickRecievedEventArgs e) { Console.WriteLine("{0} {1:dd.MM.yyyy HH:mm:ss} {2}", e.Symbol, new DateTime(1970, 1, 1).AddSeconds(e.Tick.Time), e.Tick.Bid); }
void _Client_TickRecieved(object sender, TickRecievedEventArgs e) { if (InvokeRequired) { Invoke(new EventHandler <TickRecievedEventArgs>(_Client_TickRecieved), sender, e); } else { Quotation q = _QuotationTable[e.Symbol]; if (q != null) { q.Ask = e.Tick.Ask; q.Bid = e.Tick.Bid; } } }