private void OnWebSocketTickerUpdate(object sender, TickerUpdateEventArgs e) { if (IsHandleCreated && InvokeRequired) { BeginInvoke(new MethodInvoker(() => UpdateRow(e.Ticker))); } else { UpdateRow(e.Ticker); } }
protected void RaiseTickerUpdate(Ticker t) { TickerUpdateEventArgs e = new TickerUpdateEventArgs() { Ticker = t }; if (TickerUpdate != null) { TickerUpdate(this, e); } t.RaiseChanged(); }
private void OnWebSocketTickerUpdate(object sender, TickerUpdateEventArgs e) { UpdateRow(e.Ticker); }