Added magazines names, auto open cms client...
Fix alarm bug
This commit is contained in:
@@ -198,7 +198,8 @@ namespace Step.Config
|
||||
ServerAddress = x.Element("serverAddress").Value,
|
||||
ServerPort = Convert.ToInt32(x.Element("serverPort").Value),
|
||||
EnableDirectoryBrowsing = Convert.ToBoolean(x.Element("enableDirectoryBrowsing").Value),
|
||||
DatabaseAddress = x.Element("databaseAddress").Value
|
||||
DatabaseAddress = x.Element("databaseAddress").Value,
|
||||
AutoOpenCmsClient = Convert.ToBoolean(x.Element("autoOpenCmsClient").Value)
|
||||
}).FirstOrDefault();
|
||||
}
|
||||
|
||||
@@ -391,6 +392,19 @@ namespace Step.Config
|
||||
|
||||
})
|
||||
.FirstOrDefault();
|
||||
|
||||
ToolManagerConfig.MagazineNames = xmlConfigFile
|
||||
.Root
|
||||
.Descendants("magazineNames")
|
||||
.Elements()
|
||||
.Select(x => new MagazineNamesModel()
|
||||
{
|
||||
MagazineId = Convert.ToInt32(x.Element("id").Value),
|
||||
LocalizedNames = x.Element("localizedNames").Elements().ToDictionary( // Read localized names and convert into a dictionary
|
||||
y => y.Attribute("langKey").Value, y => y.Value
|
||||
),
|
||||
})
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public static void ReadMacros()
|
||||
|
||||
Reference in New Issue
Block a user