public BackupSource(string sourcePath, SingleAssemblyResourceManager resourceManager, KlerksSoft.EasyProgressDialog.ProgressDialog progressDialog) { string expandedSourcePath = Path.GetFullPath(sourcePath); if (!Directory.Exists(expandedSourcePath)) throw new ArgumentException("Path to back up must exist!", "sourcePath"); _sourcePath = expandedSourcePath; _generalResourceManager = resourceManager; _progressDialog = progressDialog; }
public RestoreManager(string sourceBackupPath, string destinationPath, string password, SingleAssemblyResourceManager generalResourceManager, KlerksSoft.EasyProgressDialog.ProgressDialog progressDialog) { if (string.IsNullOrEmpty(password)) throw new ArgumentException("password must not be empty", "password"); _selectedBackupSourcePath = sourceBackupPath; _backupLocation = destinationPath; _password = password; _progressDialog = progressDialog; _generalResourceManager = generalResourceManager; }
public frm_FolderBackup() { Thread.CurrentThread.CurrentUICulture = Properties.Settings.Default.Language; generalResourceManager = new SingleAssemblyResourceManager("General", Assembly.GetExecutingAssembly()); progressDialog = new ProgressDialog(); progressDialog.DisplayCounts = false; progressDialog.DisplayIntervalSeconds = 1; progressDialog.DisplayTimeEstimates = false; InitializeComponent(); }
public BackupSource(string sourcePath, SingleAssemblyResourceManager resourceManager, KlerksSoft.EasyProgressDialog.ProgressDialog progressDialog) { string expandedSourcePath = Path.GetFullPath(sourcePath); if (!Directory.Exists(expandedSourcePath)) { throw new ArgumentException("Path to back up must exist!", "sourcePath"); } _sourcePath = expandedSourcePath; _generalResourceManager = resourceManager; _progressDialog = progressDialog; }
public RestoreManager(string sourceBackupPath, string destinationPath, string password, SingleAssemblyResourceManager generalResourceManager, KlerksSoft.EasyProgressDialog.ProgressDialog progressDialog) { if (string.IsNullOrEmpty(password)) { throw new ArgumentException("password must not be empty", "password"); } _selectedBackupSourcePath = sourceBackupPath; _backupLocation = destinationPath; _password = password; _progressDialog = progressDialog; _generalResourceManager = generalResourceManager; }
public BackupManager(BackupSource source, string destinationPath, string password, string passwordCheckPhrase, SingleAssemblyResourceManager generalResourceManager, BackupCleaningOptions cleaningOptions, bool useDatabase, KlerksSoft.EasyProgressDialog.ProgressDialog progressDialog) { if (!useDatabase && !string.IsNullOrEmpty(password)) throw new ArgumentException("password must be empty if database is not used.", "password"); _source = source; _backupLocation = destinationPath; _password = password; _passwordCheckPhrase = passwordCheckPhrase; _progressDialog = progressDialog; _generalResourceManager = generalResourceManager; _cleaningOptions = cleaningOptions; _useDatabase = useDatabase; }
public BackupManager(BackupSource source, string destinationPath, string password, string passwordCheckPhrase, SingleAssemblyResourceManager generalResourceManager, BackupCleaningOptions cleaningOptions, bool useDatabase, KlerksSoft.EasyProgressDialog.ProgressDialog progressDialog) { if (!useDatabase && !string.IsNullOrEmpty(password)) { throw new ArgumentException("password must be empty if database is not used.", "password"); } _source = source; _backupLocation = destinationPath; _password = password; _passwordCheckPhrase = passwordCheckPhrase; _progressDialog = progressDialog; _generalResourceManager = generalResourceManager; _cleaningOptions = cleaningOptions; _useDatabase = useDatabase; }
public BackupSource(string sourcePath, SingleAssemblyResourceManager resourceManager) : this(sourcePath, resourceManager, null) { }
internal RestoreForm(RestoreManager restoreManager, SingleAssemblyResourceManager generalResourceManager) { _restoreManager = restoreManager; _generalResourceManager = generalResourceManager; InitializeComponent(); }
public RestoreManager(string sourceBackupPath, string destinationPath, string password, SingleAssemblyResourceManager generalResourceManager) : this(sourceBackupPath, destinationPath, password, generalResourceManager, null) { }
public BackupManager(BackupSource source, string destinationPath, string password, string passwordCheckPhrase, SingleAssemblyResourceManager generalResourceManager, BackupCleaningOptions cleaningOptions, bool useDatabase) : this(source, destinationPath, password, passwordCheckPhrase, generalResourceManager, cleaningOptions, useDatabase, null) { }