Fix sofkey config and name

Added refresh alarm
This commit is contained in:
Lucio Maranta
2018-03-15 17:27:43 +01:00
parent d94bcff103
commit bfc8bc8451
7 changed files with 89 additions and 78 deletions
+3 -3
View File
@@ -20,7 +20,7 @@ namespace Step.Config
ReadServerConfig();
ReadAreaConfig();
ReadMaintenancesConfig();
ReadSoftkeysConfig();
ReadSoftKeysConfig();
ReadAlarmsConfig();
ReadHeadsConfig();
}
@@ -208,7 +208,7 @@ namespace Step.Config
.ToList();
}
private static void ReadSoftkeysConfig()
private static void ReadSoftKeysConfig()
{
// Get Softkeys
XDocument xmlConfigFile = GetXmlHandlerWithValidator(SOFTKEYS_CONFIG_SCHEMA_PATH, SOFTKEYS_CONFIG_PATH);
@@ -228,7 +228,7 @@ namespace Step.Config
y => y.Attribute("langKey").Value, y => y.Value
),
SubKeys = x.Element("plcKeys")?.Elements().Select(y => new SubKeysModel() // Populate subkeys if exist
SubKeys = x.Element("subKeys")?.Elements().Select(y => new SubKeysModel() // Populate subkeys if exist
{
Id = id++,
PlcId = Convert.ToInt32(y.Attribute("plcId").Value),