示例#1
0
        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);
        }
示例#2
0
 private void btnReport_Click(object sender, EventArgs e)
 {
     OutlookHelpers.SendEmail(Resources.FodlerErrorReport, textBoxText.Text);
     Close();
 }