public void OkDialog() { if (!Equals(Settings.Default.StackTraceListVersion, Install.Version)) { Settings.Default.StackTraceListVersion = Install.Version; } using (var detailedReportErrorDlg = new DetailedReportErrorDlg()) { if (detailedReportErrorDlg.ShowDialog(this) == DialogResult.OK) { var skyFile = detailedReportErrorDlg.SkylineFile; _email = detailedReportErrorDlg.Email; _message = detailedReportErrorDlg.Message; SendErrorReportAttachment(_exceptionType, detailedReportErrorDlg.ScreenShots, skyFile, detailedReportErrorDlg.IsTest); } else { DialogResult = DialogResult.Cancel; } } }
public void OkDialog() { if (!Equals(Settings.Default.StackTraceListVersion, Install.Version)) { Settings.Default.StackTraceListVersion = Install.Version; } using (var detailedReportErrorDlg = new DetailedReportErrorDlg()) { if (detailedReportErrorDlg.ShowDialog(this) == DialogResult.OK) { var skyFile = detailedReportErrorDlg.SkylineFile; _email = detailedReportErrorDlg.Email; _message = detailedReportErrorDlg.Message; SendErrorReportAttachment(_exceptionType, detailedReportErrorDlg.ScreenShots, skyFile, detailedReportErrorDlg.IsTest); } else { DialogResult = DialogResult.Cancel; } } }