//+++++++++++++++++++++++++++++++++++++++++++++++++++++
//NOTE : This would also work to marshal call to UI thread
//+++++++++++++++++++++++++++++++++++++++++++++++++++++
//this.Invoke(new EventHandler(delegate
//{
// lstItems.Items.Add(e.PrimeFound.ToString());
//}));
//marshal call to UI thread
//context.Post(delegate(object state)
// {
// this.lstItems.Items.Add(e.PrimeFound.ToString());
// }, null);
context.Post((state) => lstItems.Items.Add(e.PrimeFound.ToString()), null);