예제 #1
0
        public LocalLister(Files files, BackupProgress backupProgress)
        {
            this.files = files;
            this.backupProgress = backupProgress;

            executor = new AbortableTaskExecutor(ListBackupLocations);
            Settings.Default.PropertyChanged += SettingsChanged;
        }
예제 #2
0
        public BackupEngine(Files files, BackupProgress backupProgress)
        {
            this.files = files;
            this.backupProgress = backupProgress;

            executor = new AbortableTaskExecutor(Backup);
            retryHelper = new RetryHelper();
            retryHelper.ExceptionOccured += ExceptionOccured;
        }
예제 #3
0
        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;
        }