Пример #1
0
 private void ShowNotification(object myObject, DetectorArgs myArgs)
 {
     trayClass.ShowTrayInformation("Website change detector! ", myArgs.Message);
     try {
         if (tbEmail.Text != null && tbEmail.Text != "")
         {
             MailSender.sendMail(tbEmail.Text, tbURL.Text);
         }
     }
     catch (Exception e)
     {
         String historyItem = DateTime.Now.ToLocalTime().ToString() + " !! " + e.Message;
         lbHistory.Items.Add(historyItem);
     }
 }
Пример #2
0
        private void HistoryChanged(object myObject, DetectorArgs myArgs)
        {
            String historyItem = myArgs.Date.ToLocalTime().ToString() + " -- " + myArgs.Message;

            lbHistory.Items.Add(historyItem);
        }