Fix shanks query
Added options config
This commit is contained in:
@@ -24,6 +24,7 @@ namespace Step.Config
|
||||
ReadUserSoftKeysConfig();
|
||||
ReadAlarmsConfig();
|
||||
ReadHeadsConfig();
|
||||
ReadToolManagerConfig();
|
||||
}
|
||||
catch (System.Xml.XmlException ex)
|
||||
{
|
||||
@@ -305,6 +306,30 @@ namespace Step.Config
|
||||
})
|
||||
.ToList();
|
||||
}
|
||||
private static void ReadToolManagerConfig()
|
||||
{
|
||||
XDocument xmlConfigFile = GetXmlHandlerWithValidator(TOOL_MANAGER_CONFIG_SCHEMA_PATH, TOOL_MANAGER_CONFIG_PATH);
|
||||
|
||||
// Read config from XML file
|
||||
ToolManagerConfig = xmlConfigFile
|
||||
.Elements()
|
||||
.Select(x => new ToolManagerConfigModel()
|
||||
{
|
||||
FamilyOptIsActive = Convert.ToBoolean(x.Element("familyOptIsActive").Value),
|
||||
ShankOptIsActive = Convert.ToBoolean(x.Element("shankOptIsActive").Value),
|
||||
MagPositionIsActive = Convert.ToBoolean(x.Element("magPositionOptIsActive").Value),
|
||||
OffsetOptIsActive = Convert.ToBoolean(x.Element("offsetOptIsActive").Value),
|
||||
ReviveOptIsActive = Convert.ToBoolean(x.Element("reviveOptIsActive").Value),
|
||||
GammaOptIsActive = Convert.ToBoolean(x.Element("gammaOptIsActive").Value),
|
||||
LifeOptIsActive = Convert.ToBoolean(x.Element("lifeOptIsActive").Value),
|
||||
TcpOptIsActive = Convert.ToBoolean(x.Element("tcpOptIsActive").Value),
|
||||
CoolingOptIsActive = Convert.ToBoolean(x.Element("coolingOptIsActive").Value),
|
||||
MultidimensionalShankOptIsActive = Convert.ToBoolean(x.Element("multidimensionalShankOptIsActive").Value),
|
||||
SelfAdaptivePathOptIsActive = Convert.ToBoolean(x.Element("selfAdaptivePathOptIsActive").Value),
|
||||
DynamicCompensationOptIsActive = Convert.ToBoolean(x.Element("dynamicCompensationOptIsActive").Value),
|
||||
})
|
||||
.FirstOrDefault();
|
||||
}
|
||||
|
||||
#endregion Read config from file from configuration
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user