public void updateHtmlPage(string html)
        {
            var value = htmlCode.textEditorControl().ActiveTextAreaControl.VScrollBar.Value;

            htmlCode.textEditorControl().Document.TextContent = html;
            htmlCode.textEditorControl().ActiveTextAreaControl.VScrollBar.Value = value;


            //var pageHtml = ((O2BrowserIE)browser).DocumentText;
            //htmlCode.Parent.BackColor = System.Drawing.Color.White;
            //log.info("before: {0}", value);
            //var fileType = (currentFile.extension(".html")) ? currentFile : "AAA.html";
            //htmlCode.Visible = false;
            //htmlCode.setDocumentContents(html, fileType);

            //log.info("after: {0}", value);

            //htmlCode.Visible = true;

            /*
             *      var doc = (IHTMLDocument3) ((O2BrowserIE)browser).Document.DomDocument;
             *      if (doc == null)
             *              log.error("doc was null!!");
             *      else
             *      {
             *  var pageHtml = doc.documentElement.outerHTML;
             *
             *              htmlCode.setDocumentContents(pageHtml, currentFile);
             *      }*/
        }
 public static ascx_SourceCodeViewer maximizeViewer(this ascx_SourceCodeViewer codeViewer)
 {
     codeViewer.textEditorControl().fill().bringToFront();
     return(codeViewer);
 }
 public static TextEditorControl textEditor(this ascx_SourceCodeViewer sourceCodeViewer)
 {
     return(sourceCodeViewer.textEditorControl());
 }