Added new tool configuration: customizable tools types
This commit is contained in:
@@ -658,6 +658,20 @@ namespace Step.Config
|
||||
),
|
||||
})
|
||||
.ToList();
|
||||
|
||||
ToolManagerConfig.ToolTypes = xmlConfigFile
|
||||
.Root
|
||||
.Descendants("toolTypes")
|
||||
.Elements()
|
||||
.Select(x => new ToolTypeConfigModel()
|
||||
{
|
||||
Id = Convert.ToInt32(x.Element("id").Value),
|
||||
Disabled = Convert.ToBoolean(x.Element("disabled").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