Moved external programs config into "serverConfig.xml"
This commit is contained in:
@@ -278,6 +278,21 @@ namespace Step.Config
|
||||
AlarmToDelete = Convert.ToInt32(x.Element("alarmToDelete").Value),
|
||||
CMSConnectReady = Convert.ToBoolean(x.Element("CMSConnectReady").Value)
|
||||
}).FirstOrDefault();
|
||||
|
||||
int softwareId = 0;
|
||||
ExtSoftwaresConfig = xmlConfigFile
|
||||
.Descendants("extSoftwares")
|
||||
.Elements("software")
|
||||
.Select(x => new ExtSoftwareModel()
|
||||
{
|
||||
Path = x.Element("path").Value,
|
||||
Arguments = x.Element("arguments").Value,
|
||||
LongName = x.Element("longName").Value,
|
||||
ShortName = x.Element("shortName").Value,
|
||||
IconBase64 = ExtractBase64ProgIcon(x.Element("path").Value),
|
||||
InMainMenuBar = Convert.ToBoolean(x.Element("inMainMenuBar").Value),
|
||||
Id = softwareId++.ToString()
|
||||
}).ToList();
|
||||
}
|
||||
|
||||
private static void ReadAreaConfig()
|
||||
|
||||
Reference in New Issue
Block a user