private void TestTrace_OnTestTrace(string virtualUser, string traceMessage)
 {
     if (this.InvokeRequired)
     {
         OnTestTraceDelegate d = new OnTestTraceDelegate(onTestTrace);
         BeginInvoke(d, new object[] { virtualUser, traceMessage });
     }
     else
     {
         onTestTrace(virtualUser, traceMessage);
     }
 }
        private void TestTrace_OnTestTrace(string traceMessage)
        {
            Debug.WriteLine("TestTrace_OnTestTrace");

            if (this.InvokeRequired)
            {
                OnTestTraceDelegate d = new OnTestTraceDelegate(onTestTrace);
                BeginInvoke(d, new object[] { traceMessage });
            }
            else
            {
                onTestTrace(traceMessage);
            }
        }