public ReportViewerForm(bool exitOnClose, bool showScriptErrors) { InitializeComponent(); ShowIcon = true; Icon = Repository.ProductIcon; webBrowser.ScriptErrorsSuppressed = !showScriptErrors; _exitOnClose = exitOnClose; }