static void backup_BackupEnded(object sender, BackupEndedEventArgs e) { if (backupArgs.WriteToConsole) { Console.WriteLine(e.ToString()); } if (backupArgs.SendEmailOnSuccess && e.Success) { Send(backupArgs.Emails, "Backup Ended", e.ToString()); } else if (backupArgs.SendEmailOnFailure && !e.Success) { Send(backupArgs.Emails, "Backup Ended with Failures", e.ToString() + Environment.NewLine + Environment.NewLine + e.GetExceptionsReport()); } }
private void backup_BackupEnded(object sender, BackupEndedEventArgs e) { MessageBox.Show(e.ToString()); }