private void ReportSuccess() { _progressDialog.Close(); MessageBox.Show( string.Format(_resources.GetString("MessageSentMessage"), _reportCrash.ApplicationTitle, _reportCrash.ApplicationVersion), _resources.GetString("MessageSentCaption"), MessageBoxButtons.OK, MessageBoxIcon.Information); DialogResult = DialogResult.OK; }
private void SmtpClientSendCompleted(object sender, AsyncCompletedEventArgs e) { _progressDialog.Close(); if (e.Error != null) { MessageBox.Show(e.Error.Message, e.Error.ToString(), MessageBoxButtons.OK, MessageBoxIcon.Error); } else { MessageBox.Show( string.Format("Crash report of {0} {1} is sent to the developer. Thanks for your support.", _reportCrash.ApplicationTitle, _reportCrash.ApplicationVersion), Resources.CrashReport_Crash_report_sent, MessageBoxButtons.OK, MessageBoxIcon.Information); DialogResult = DialogResult.OK; } }