private void WriteOutputText( string prefix, string outputText, WebBrowser activeBrowser )
{
try
{
this.UIThreadInvoke( delegate
{
if (activeBrowser == null)
activeBrowser = _defaulBrowser;
if (activeBrowser.Tag == null)
activeBrowser.Tag = "";
var s = activeBrowser.Tag as string;
string bodyText = s +
string.Format( LINE_TEMPLATE, prefix, DateTime.Now,
outputText );
activeBrowser.Tag = bodyText;
activeBrowser.NavigateToString( string.Format( TEMPLATE, bodyText ) );
} );
}
catch (Exception e)
{
Console.Write( e.Message );
}
}