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