SetScriptErrorsSuppressed() public static method

public static SetScriptErrorsSuppressed ( System.Windows.Controls.WebBrowser browser, bool value ) : void
browser System.Windows.Controls.WebBrowser
value bool
return void
コード例 #1
0
ファイル: KanColleHost.cs プロジェクト: uttm/KanColleViewer
        private void HandleLoadCompleted(object sender, NavigationEventArgs e)
        {
            this.ApplyStyleSheet();
            WebBrowserHelper.SetScriptErrorsSuppressed(this.WebBrowser, true);

            this.Update();
        }
コード例 #2
0
        private void HandleLoadCompleted(object sender, NavigationEventArgs e)
        {
            this.ApplyStyleSheet();
            WebBrowserHelper.SetScriptErrorsSuppressed(this.WebBrowser, true);

            this.Update();

            //var window = Window.GetWindow(this.WebBrowser);
            //if (window != null)
            //{
            //    window.Width = this.WebBrowser.Width;
            //}
        }
コード例 #3
0
        private void HandleLoadCompleted(object sender, NavigationEventArgs e)
        {
            styleSheetApplied = styleSheetApplied || e.Uri.AbsoluteUri == Properties.Settings.Default.KanColleGamePage.AbsoluteUri || e.Uri.AbsolutePath.Contains(".swf");

            WebBrowserHelper.SetScriptErrorsSuppressed(this.WebBrowser, true);

            this.Update();

            var window = Window.GetWindow(this.WebBrowser);

            if (window != null)
            {
                window.MinHeight = this.WebBrowser.Height + 60;
            }
        }