Fix ACTIVE error management

Fix tool table cancel buttons
Removed deleted button in edit
This commit is contained in:
Lucio Maranta
2019-03-26 17:01:29 +01:00
parent 463e24a2d2
commit 7ed87452a4
8 changed files with 97 additions and 121 deletions
+4 -3
View File
@@ -134,13 +134,14 @@ namespace Step.Config
{
if (e.Severity == XmlSeverityType.Warning)
{
ExceptionManager.Manage(ERROR_LEVEL.WARNING, e.Message);
ExceptionManager.Manage(ERROR_LEVEL.WARNING, e.Message, true);
}
else if (e.Severity == XmlSeverityType.Error)
{
ExceptionManager.Manage(ERROR_LEVEL.FATAL,
// "Error while reading file: " + e.Exception.SourceUri +
"Error while reading configuration file: " + e.Message
"Error while reading configuration file: " + e.Message,
true
);
}
}
@@ -193,7 +194,7 @@ namespace Step.Config
{
StreamReader sr = new StreamReader(SCADA_DIRECTORY + file.Name);
XmlSerializer xmlSerializer = new XmlSerializer(typeof(ScadaSchemaModel));
ScadaSchemaModel schema = xmlSerializer.Deserialize(sr) as ScadaSchemaModel;
ScadaSchemaModel schema = xmlSerializer.Deserialize(sr) as ScadaSchemaModel;
// Setup incremental ids
schema.Id = i++;