void _RemotingWrapper_MessageEvent(string msg, int threadNumber, double average, double totalTime) { if (this.InvokeRequired) { CheckEven d = new CheckEven(_RemotingWrapper_MessageEvent); this.Invoke(d, new object[] { msg, threadNumber, average, totalTime }); } else { string str = string.Concat(msg, threadNumber, average, totalTime); strResult.Append(msg); strResult.Append(threadNumber); strResult.Append(string.Concat(" Date : ", System.DateTime.Now)); strResult.Append(string.Concat(" AVG time : ", average, " ms")); strResult.Append(string.Concat(" Total time : ", totalTime, " ms")); strResult.AppendLine(Environment.NewLine); } }