private void SaveChanges() { this.unitOfWork.SettingRepository.Update(this.Model.Language); this.unitOfWork.SettingRepository.Update(this.Model.BackupDatabaseName); this.unitOfWork.SettingRepository.Update(this.Model.BackupLocation); this.unitOfWork.SettingRepository.Update(this.Model.BackupFileName); this.unitOfWork.SettingRepository.Update(this.Model.BackupHour); this.unitOfWork.SettingRepository.Update(this.Model.BackupMinute); this.unitOfWork.SettingRepository.Update(this.Model.ReminderCheckDelay); this.unitOfWork.SettingRepository.Update(this.Model.SmtpEnableSsl); this.unitOfWork.SettingRepository.Update(this.Model.SmtpFromAddress); this.unitOfWork.SettingRepository.Update(this.Model.SmtpHost); this.unitOfWork.SettingRepository.Update(this.Model.SmtpPassword); this.unitOfWork.SettingRepository.Update(this.Model.SmtpPort); this.unitOfWork.SettingRepository.Update(this.Model.SmtpUserName); this.unitOfWork.Save(); ApplicationSettingsManager.TryWriteValue("VideoDevice", this.SelectedVideoDevice); }