public void ReadData(Data data) { _baseStorage.ReadData(data); var upgrader = new CreatorSettingsUpgrader(data); if (upgrader.RequiresUpgrade(_targetVersion)) { upgrader.Upgrade(_targetVersion); } }
public void ReadData(Data data) { _baseStorage.ReadData(data); var upgrader = new CreatorSettingsUpgrader(data, _fontHelper); if (upgrader.RequiresUpgrade(_targetVersion)) { var settings = new PdfCreatorSettings(); settings.ReadValues(data); _settingsBackup.SaveSettings(settings); upgrader.Upgrade(_targetVersion); } }