public void LoadHtml(string html)
        {
            WebPage page = new WebPage(html);

            for (int i = _initScripts.Count - 1; i >= 0; i--)
            {
                page.AddToHeaderStart($"\n<script>\n{_initScripts[i]}\n</script>\n");
            }
            html = page.ToString();
            _lastHtmlField.SetValue(Controller, html);
            _view.LoadData(html, "text/html", "UTF-8");
        }
        public void LoadHtml(string html)
        {
            WebPage page = new WebPage(html);

            for (int i = initScripts.Count - 1; i >= 0; i--)
            {
                page.AddToHeaderStart($"\n<script>\n{initScripts[i]}\n</script>\n");
            }
            File.WriteAllText(Path.Combine(new FileInfo(Assembly.GetExecutingAssembly().Location).DirectoryName, "test.html"), page.ToString());
            RunOnReady(() =>
            {
                CefFrame frame = _browser.Browser.GetMainFrame();
                _browser.Browser.GetMainFrame().LoadString(page.ToString(), "http://localhost/");
            });
        }