Пример #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;
        }
Пример #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;
        }
Пример #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();
        }
Пример #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();
        }
Пример #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;
        }
Пример #6
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;
        }
Пример #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;
        }
Пример #8
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;
        }
Пример #9
0
 public BackupSource(string sourcePath, SingleAssemblyResourceManager resourceManager)
     : this(sourcePath, resourceManager, null)
 {
 }
Пример #10
0
 public BackupSource(string sourcePath, SingleAssemblyResourceManager resourceManager)
     : this(sourcePath, resourceManager, null)
 {
 }
Пример #11
0
 internal RestoreForm(RestoreManager restoreManager, SingleAssemblyResourceManager generalResourceManager)
 {
     _restoreManager = restoreManager;
     _generalResourceManager = generalResourceManager;
     InitializeComponent();
 }
Пример #12
0
 public RestoreManager(string sourceBackupPath, string destinationPath, string password, SingleAssemblyResourceManager generalResourceManager)
     : this(sourceBackupPath, destinationPath, password, generalResourceManager, null)
 {
 }
Пример #13
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)
 {
 }
Пример #14
0
 public RestoreManager(string sourceBackupPath, string destinationPath, string password, SingleAssemblyResourceManager generalResourceManager)
     : this(sourceBackupPath, destinationPath, password, generalResourceManager, null)
 {
 }
Пример #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)
 {
 }
Пример #16
0
 internal RestoreForm(RestoreManager restoreManager, SingleAssemblyResourceManager generalResourceManager)
 {
     _restoreManager         = restoreManager;
     _generalResourceManager = generalResourceManager;
     InitializeComponent();
 }