/// ------------------------------------------------------------------------------------ private void PerformBackgroundWork(object sender, DoWorkEventArgs e) { try { using (var zip = GetZipFileForProcessing()) { PerformZipWork(zip); if (Cancel) { LogBox.WriteMessageWithColorAndFontStyle(Color.Red, FontStyle.Bold, Environment.NewLine + GetCancelledMessage()); } else { LogBox.WriteMessageWithColorAndFontStyle(Color.DarkGreen, FontStyle.Bold, Environment.NewLine + GetCompleteMessage()); } } } catch (Exception error) { BackupRestoreException = error; } }