Exemple #1
0
 private void ApplySettings(LocalSettingsData newSettings)
 {
     BackupInterval  = newSettings.BackupInterval;
     BackupDirectory = newSettings.BackupDirectory;
     BackupTime      = newSettings.BackupTime;
     BackupWeekDay   = newSettings.BackupWeekDay;
     BackUpDay       = newSettings.BackUpDay;
     LastBackup      = newSettings.LastBackup;
 }
Exemple #2
0
 public LocalSettingsRepository(IPersistenceService <LocalSettingsData> persistenceService)
 {
     this.persistenceService = persistenceService;
     ApplySettings(LocalSettingsData.CreateDefaultSettings());
 }