Пример #1
0
 public void submit(BackupDoneEventArgs ev)
 {
     if (ev.exitCode != 0)
         return;
     Settings.last_good_backup = ev.startedAt;
     PropertyService.Save();
 }
Пример #2
0
 public void updateStatus(BackupDoneEventArgs ev)
 {
     if (ev.exitCode != 0) {
         setIdleState();
         backupStateMessage.Text = "Error " + ev.exitCode;
         backupStateMessage.BackColor = ColorTranslator.FromHtml("#FF7F2A");
         return;
     }
     setLastGoodBackup(ev.startedAt);
 }