ATMLCommonLibrary.forms.ATMLOutputWindow.WriteOutputText C# (CSharp) Method

WriteOutputText() private method

private WriteOutputText ( string prefix, string outputText, System.Windows.Controls.WebBrowser activeBrowser ) : void
prefix string
outputText string
activeBrowser System.Windows.Controls.WebBrowser
return void
        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 );
            }
        }