Fix Heads translate Read Config
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user