WIP custom main program
This commit is contained in:
@@ -35,6 +35,7 @@ namespace Step.Config
|
||||
ReadToolManagerConfig();
|
||||
ReadMacros();
|
||||
ReadScadaFile();
|
||||
ReadMainProgram();
|
||||
}
|
||||
catch (XmlException ex)
|
||||
{
|
||||
@@ -78,7 +79,6 @@ namespace Step.Config
|
||||
return xmlConfigFile;
|
||||
}
|
||||
|
||||
|
||||
private static void validateScada(string configSchemaFilePath, string configFilePath)
|
||||
{
|
||||
// Create new instance
|
||||
@@ -142,8 +142,6 @@ namespace Step.Config
|
||||
case AREAS.USERS_KEY:
|
||||
SetAreaValue(ref UsersConfig, element);
|
||||
break;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -562,6 +560,15 @@ namespace Step.Config
|
||||
.ToList();
|
||||
}
|
||||
|
||||
|
||||
public static void ReadMainProgram()
|
||||
{
|
||||
if (File.Exists(MAIN_PROGRAM_CONFIG_PATH))
|
||||
{
|
||||
CMSMainProgramContent = File.ReadAllText(MAIN_PROGRAM_CONFIG_PATH);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion Read config from file from configuration
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user