private void HandleException(IWin32Window owner, Exception ex) { string message; BasicGoogleTelemetry.SendExtendedExceptionHit(ex, false, TelemetryScreenName, TelemetryScreenName); var isSocket = ex as SocketException; var isTimeout = ex as TimeoutException; message = TextDownloadException ?? Properties.Texts.HelperExceptionText; if (isSocket != null) { message = string.Format(Properties.Texts.SocketException, message, isSocket.SocketErrorCode); } else if (isTimeout != null) { message = string.Format(Properties.Texts.TimeoutException, message); } var box = new ExceptionMessageBox() { Buttons = ExceptionMessageBoxButtons.Custom, InnerException = ex, Text = message, DefaultButton = ExceptionMessageBoxDefaultButton.Button2, CustomSymbol = Properties.Resources.DvbStpDownload_Error_48x48 }; box.SetButtonText(ExceptionMessageBox.OKButtonText, Properties.Texts.HandleExceptionHelpButton); box.Show(owner); if (box.CustomDialogResult == ExceptionMessageBoxDialogResult.Button2) { BasicGoogleTelemetry.SendEventHit("ShowDialog", "UiServices.DvbStpClient.HelpDialog", TelemetryScreenName, TelemetryScreenName); HelpDialog.ShowRtfHelp(owner, Properties.Texts.RtfTroubleshootingGuide, null); } // if } // HandleException
} // WizardWelcomeDialog_Shown private void linkAnalyticsHelp_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { HelpDialog.ShowRtfHelp(this, Properties.Texts.GoogleTelemetry, Properties.Texts.TelemetryHelpCaption); } // linkAnalyticsHelp_LinkClicked