diff --git a/Thermo.Active/Controllers/WebApi/LanguageController.cs b/Thermo.Active/Controllers/WebApi/LanguageController.cs index 553f6534..02fc1a2e 100644 --- a/Thermo.Active/Controllers/WebApi/LanguageController.cs +++ b/Thermo.Active/Controllers/WebApi/LanguageController.cs @@ -172,27 +172,6 @@ namespace Thermo.Active.Controllers.WebApi // Read data from CN ncAdapter.numericalControl.NC_GetTranslatedThermoLabels(language, ref returnValue); - //// Id start from 1 - //for (int i = 1; i <= 1024; i++) - //{ - // // Get configurated alarms - // var tmpAlarmConfig = InitialAlarmsConfig.Where(x => x.PlcId == i).FirstOrDefault(); - // // Default string - // string message = string.Format(NOT_CONFIGURATED_ALARM_MESSAGE, i); - // // If is configurated - // if (tmpAlarmConfig != null) - // { - // // Find translated string - // message = messages.Where(x => x.Key == tmpAlarmConfig.AlarmId).FirstOrDefault().Value; - // if (message == null) - // message = string.Format(NOT_FOUND_ALARM_MESSAGE, i); - // } - // // Add to dictionary - // returnValue.Add( - // ALARM_PREFIX + i, - // message - // ); - //} return returnValue; } diff --git a/Thermo.Active/Thermo.Active.csproj b/Thermo.Active/Thermo.Active.csproj index a5e0c159..46767539 100644 --- a/Thermo.Active/Thermo.Active.csproj +++ b/Thermo.Active/Thermo.Active.csproj @@ -267,6 +267,9 @@ PreserveNewest + + PreserveNewest +