private void frm_FolderBackup_Load(object sender, EventArgs e) { btn_Previous.Enabled = false; grp_BackupLocation.Visible = false; string ownerText = Properties.Settings.Default.OwnerName; if (!String.IsNullOrEmpty(ownerText)) ownerText = " " + ownerText; lbl_Intro.Text = lbl_Intro.Text.Replace("{OwnerText}", ownerText); BackupCleaningOptions cleaningOptions = new BackupCleaningOptions(); cleaningOptions.FinalCutOffDays = Properties.Settings.Default.FinalCutOffDays; cleaningOptions.Period1Interval = Properties.Settings.Default.Period1Interval; cleaningOptions.Period1Start = Properties.Settings.Default.Period1Start; cleaningOptions.Period2Interval = Properties.Settings.Default.Period2Interval; cleaningOptions.Period2Start = Properties.Settings.Default.Period2Start; cleaningOptions.Period3Interval = Properties.Settings.Default.Period3Interval; cleaningOptions.Period3Start = Properties.Settings.Default.Period3Start; _backupSource = new BackupSource(Properties.Settings.Default.LocationToBackup, generalResourceManager, progressDialog); _backupMgr = new BackupManager(_backupSource, Properties.Settings.Default.BackupLocation, Properties.Settings.Default.EncryptionPassword, Properties.Settings.Default.EncryptionCheckPhrase, generalResourceManager, cleaningOptions, Properties.Settings.Default.UseDatabase, progressDialog); lbl_BackupLocation.Text = _backupSource.SourcePath; lbl_LocToBackUp.Text = _backupSource.SourcePath; txt_BackupDestination.Text = _backupMgr.BackupLocation; }
internal MatchingBackupLocationListForm(BackupManager backupManager) { InitializeComponent(); _backupManager = backupManager; RenderList(); }