Esempio n. 1
0
        public void Navigate(Uri url, AnkhBrowserArgs args, out AnkhBrowserResults results)
        {
            IVsWebBrowsingService browserSvc = GetService<IVsWebBrowsingService>(typeof(SVsWebBrowsingService));

            Guid windowGuid = new Guid(ToolWindowGuids80.WebBrowserWindow);
            IVsWebBrowser browser;
            IVsWindowFrame ppFrame;
            int hr = browserSvc.CreateWebBrowser(
                (uint)args.CreateFlags,
                ref windowGuid,
                args.BaseCaption,
                url.ToString(),
                new BrowserUser(),
                out browser,
                out ppFrame);
            results = new Results(browser, ppFrame);
        }
Esempio n. 2
0
        public void Navigate(Uri url, AnkhBrowserArgs args, out AnkhBrowserResults results)
        {
            IVsWebBrowsingService browserSvc = GetService <IVsWebBrowsingService>(typeof(SVsWebBrowsingService));

            Guid           windowGuid = new Guid(ToolWindowGuids80.WebBrowserWindow);
            IVsWebBrowser  browser;
            IVsWindowFrame ppFrame;
            int            hr = browserSvc.CreateWebBrowser(
                (uint)args.CreateFlags,
                ref windowGuid,
                args.BaseCaption,
                url.ToString(),
                new BrowserUser(),
                out browser,
                out ppFrame);

            results = new Results(browser, ppFrame);
        }