Fix ACTIVE error management
Fix tool table cancel buttons Removed deleted button in edit
This commit is contained in:
@@ -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++;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user