private void ShowUpdateMessage(string message, params object[] args)
{
if (m_formClosing)
return;
if (InvokeRequired)
{
BeginInvoke(new Action<string, object[]>(ShowUpdateMessage), message, args);
}
else
{
StringBuilder outputText = new StringBuilder();
outputText.AppendFormat(message, args);
outputText.AppendLine();
lock (textBoxMessageOutput)
textBoxMessageOutput.AppendText(outputText.ToString());
}
}