コード例 #1
0
        private static IDocumentBrowser CreateLegacyDocumentBrowser( ServiceProvider serviceProvider )
        {
            var browser = new LegacyDocumentBrowser();
            browser.Init( serviceProvider );

            browser.DownloadController.Options = BrowserOptions.NoActiveXDownload |
                BrowserOptions.NoBehaviors | BrowserOptions.NoJava | BrowserOptions.NoScripts |
                BrowserOptions.Utf8;

            return browser;
        }
コード例 #2
0
ファイル: BrowserForm.cs プロジェクト: bg0jr/Maui
        public BrowserForm()
        {
            InitializeComponent();

            myDocumentBrowser = new LegacyDocumentBrowser( myBrowser );
            myDocumentBrowser.Browser.Navigating += myBrowser_Navigating;
            myDocumentBrowser.Browser.DocumentCompleted += myBrowser_DocumentCompleted;

            // disable links
            // TODO: we cannot use this, it disables navigation in general (Navigate() too)
            //myBrowser.AllowNavigation = false;

            // TODO: how to disable images in browser

            myMarkupDocument = new MarkupDocument();
            myMarkupDocument.ValidationChanged += SeriesName_ValidationChanged;

            myDimension.DataSource = Enum.GetValues( typeof( CellDimension ) );
        }