void OnSampleTaken(object sender, SampleTakenEventArgs e) { Trace.WriteLine(string.Format("{0}: {1}", e.WorkQueueProcessingSample.Processor, e.WorkQueueProcessingSample.TotalSOProcessed)); this.Invoke(_drawDelegate, e.WorkQueueProcessingSample); }