private void btnSend_Click(object sender, EventArgs e) { string subjectEmail = textBoxSubject.Text; string bodyEmail = textBoxDescription.Text; if (chBwithResults.Checked) { bodyEmail += Environment.NewLine + "Results:" + Environment.NewLine + MainController.GetResults(); } OutlookHelpers.SendEmail(subjectEmail, bodyEmail); DialogResult = DialogResult.OK; Close(); MessageBox.Show(Resources.EmailSentThankYou); }
private void btnReport_Click(object sender, EventArgs e) { OutlookHelpers.SendEmail(Resources.FodlerErrorReport, textBoxText.Text); Close(); }