Ejemplo n.º 1
0
 private void workerAutomation_DoWork(object sender, DoWorkEventArgs e)
 {
     Automation.loadDatabases(null);
     Automation.execute();
 }
Ejemplo n.º 2
0
 private void SendMailWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     Logger.Log("Starting Opertation \n", LogType.Operation);
     try
     {
         var au = new Automation();
         MessageBox.Show(au.Run());
         Logger.Log("Operation ended \n", LogType.Operation);
     }
     catch (Exception ex)
     {
         Logger.Log("Could not complete the operation " + "\n" + ex.StackTrace.ToString(), LogType.Error);
     }
 }