コード例 #1
0
        void ti_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
        {
            var mail = new SteinbachMail.CheckMailReminder();

            mail.checkMail();
            SteinbachMail.Eventlogging.log("Timer Tick", DateTime.Now.ToString());
        }
コード例 #2
0
 private void button1_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         //pt = new SteinbachMail.ProjektTimer();
         ////eventLog1.WriteEntry("in OnStart");
         //textBox1.Text = (SteinbachMail.CheckMailReminder.GetEnvironment());
         //  var ap = new SteinbachMail.CheckApointmetReminder();
         var ap = new SteinbachMail.CheckMailReminder();
         ap.checkMail();
     }
     catch (Exception ex)
     {
         textBox1.Text = (ex.Message);
         if (ex.InnerException != null)
         {
             textBox1.Text += (ex.InnerException.Message);
         }
     }
 }