public LocalLister(Files files, BackupProgress backupProgress) { this.files = files; this.backupProgress = backupProgress; executor = new AbortableTaskExecutor(ListBackupLocations); Settings.Default.PropertyChanged += SettingsChanged; }
public BackupEngine(Files files, BackupProgress backupProgress) { this.files = files; this.backupProgress = backupProgress; executor = new AbortableTaskExecutor(Backup); retryHelper = new RetryHelper(); retryHelper.ExceptionOccured += ExceptionOccured; }
public MainWindow(Files files, BackupProgress backupProgress, BackupEngine backupEngine) { SetValue(FilesProperty, files); SetValue(BackupProgressProperty, backupProgress); this.backupEngine = backupEngine; InitializeComponent(); DataContext = this; Language = XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag); BackupProgress.PropertyChanged += BackupProgressChanged; }