public void LogText(string text, Color color)
{
if (this.InvokeRequired)
{
this.BeginInvoke((MethodInvoker)delegate { LogText(text, color); });
}
else
{
_rtfOutput.SelectionStart = _rtfOutput.Text.Length;
_rtfOutput.SelectionColor = color;
DateTime now = DateTime.Now;
_rtfOutput.SelectedText = string.Format("{0}[{1}:{2}] {3}", Environment.NewLine, now.Hour.ToString().PadLeft(2, '0'), now.Minute.ToString().PadLeft(2, '0'), text);
_rtfOutput.ScrollToCaret();
}
}