Beispiel #1
0
 private void btnTest_Click(object sender, EventArgs e)
 {
     try
     {
         wbResponse.DocumentText = Threads.DoJob(tbUrl.Text);
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
         tbUrl.Focus();
     }
 }
Beispiel #2
0
 private void btnTestMail_Click(object sender, EventArgs e)
 {
     try
     {
         wbResponse.DocumentText = Threads.DoJob(tbUrl.Text, MailAlertShouldBeSent.InAnyCase, this.cbMailServerIsOffice365.Checked, this.tbMailServerAddress.Text, (int)this.nudMailServerPort.Value, this.tbMailServerUsername.Text, this.tbMailServerPassword.Text, this.tbMailTo.Text, this.tbMailSubject.Text);
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message);
         tbMailServerAddress.Focus();
     }
 }