public void PriceUpdateHandlerForBAC(object sender, EventArgs e) { Conflation sender1 = (Conflation)sender; //textBox2.Text = System.Convert.ToString(sender1.Price); Thread threadBAC = new Thread(() => this.UpdateBAC(System.Convert.ToString(sender1.Price))); threadBAC.Start(); }
private void backgroundWorkerForBAC_DoWork(object sender, DoWorkEventArgs e) { CountdownEvent eventForBAC = countMap[tickerBAC.Symbol];; Conflation conflationBAC = new Conflation(eventForBAC, tickerBAC); conflationBAC.priceUpdateEvent += PriceUpdateHandlerForBAC; Thread conflationThreadBAC = new Thread(conflationBAC.DoConflation); conflationThreadBAC.Start(); }