Bloom.Browser.Navigate C# (CSharp) Method

Navigate() public method

public Navigate ( HtmlDom htmlDom, HtmlDom htmlEditDom = null, bool setAsCurrentPageForDebugging = false ) : void
htmlDom HtmlDom
htmlEditDom HtmlDom
setAsCurrentPageForDebugging bool
return void
        public void Navigate(HtmlDom htmlDom, HtmlDom htmlEditDom = null, bool setAsCurrentPageForDebugging = false)
        {
            if (InvokeRequired)
            {
                Invoke(new Action<HtmlDom, HtmlDom, bool>(Navigate), htmlDom, htmlEditDom, setAsCurrentPageForDebugging);
                return;
            }

            XmlDocument dom = htmlDom.RawDom;
            XmlDocument editDom = htmlEditDom == null ? null : htmlEditDom.RawDom;

            _rootDom = dom;//.CloneNode(true); //clone because we want to modify it a bit
            _pageEditDom = editDom ?? dom;

            XmlHtmlConverter.MakeXmlishTagsSafeForInterpretationAsHtml(dom);
            var fakeTempFile = EnhancedImageServer.MakeSimulatedPageFileInBookFolder(htmlDom, setAsCurrentPageForDebugging: setAsCurrentPageForDebugging);
            SetNewDependent(fakeTempFile);
            _url = fakeTempFile.Key;
            UpdateDisplay();
        }

Same methods

Browser::Navigate ( string url, bool cleanupFileAfterNavigating ) : void