WIP custom main program

This commit is contained in:
Lucio Maranta
2019-06-18 15:43:45 +02:00
parent d609fbe18b
commit c7ac5de54e
12 changed files with 43 additions and 23 deletions
+10 -3
View File
@@ -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
}
}