Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
        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();
        }
Beispiel #4
0
        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();
        }
Beispiel #5
0
        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;
        }
Beispiel #7
0
        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;
        }
Beispiel #9
0
 public BackupSource(string sourcePath, SingleAssemblyResourceManager resourceManager)
     : this(sourcePath, resourceManager, null)
 {
 }
Beispiel #10
0
 public BackupSource(string sourcePath, SingleAssemblyResourceManager resourceManager)
     : this(sourcePath, resourceManager, null)
 {
 }
Beispiel #11
0
 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)
 {
 }
Beispiel #14
0
 public RestoreManager(string sourceBackupPath, string destinationPath, string password, SingleAssemblyResourceManager generalResourceManager)
     : this(sourceBackupPath, destinationPath, password, generalResourceManager, null)
 {
 }
Beispiel #15
0
 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)
 {
 }
Beispiel #16
0
 internal RestoreForm(RestoreManager restoreManager, SingleAssemblyResourceManager generalResourceManager)
 {
     _restoreManager         = restoreManager;
     _generalResourceManager = generalResourceManager;
     InitializeComponent();
 }