Fix Heads translate Read Config

This commit is contained in:
Nicola Carminati
2018-08-09 16:32:44 +02:00
parent 197473d767
commit 485e35cdc1
+4 -2
View File
@@ -312,10 +312,12 @@ namespace Step.Config
.Select(x => new HeadsConfigModel()
{
Id = i++, // Autoincrement Id
Name = x.Element("name").Value,
Type = GetHeadType(x.Element("type").Value),
WarningLimit = Convert.ToInt16(x.Element("warningLimit").Value),
AlarmLimit = Convert.ToInt16(x.Element("alarmLimit").Value),
AlarmLimit = Convert.ToInt16(x.Element("alarmLimit").Value),
LocalizedNames = x.Element("localizedNames").Elements().ToDictionary( // Read localized names and convert into a dictionary
y => y.Attribute("langKey").Value, y => y.Value
),
})
.ToList();
}