Update metodi reset richieste

This commit is contained in:
Samuele Locatelli
2026-02-04 17:20:38 +01:00
parent f99dd90713
commit 154d969ef4
3 changed files with 17 additions and 16 deletions
+11 -14
View File
@@ -120,7 +120,7 @@ namespace Test.UI.Components.Pages
{ new Threshold(1, "Threshold") }
};
private Dictionary<string, double> ParamProfilo78 = new Dictionary<string, double>()
private Dictionary<string, double> ParamProfilo78 = new Dictionary<string, double>()
{
{"Frame_Fill_Rail_DimMax", 85},
{"Frame_Fill_Rail_DimMin", 70},
@@ -454,20 +454,17 @@ namespace Test.UI.Components.Pages
break;
case DataAction.ResetDictShape:
{
CurrData.DictShape = new Dictionary<int, string>();
break;
}
CurrData.DictShape = new Dictionary<int, string>();
break;
case DataAction.ResetHwOpt:
{
CurrData.DictOptionsXml = new Dictionary<int, string>();
break;
}
CurrData.DictOptionsXml = new Dictionary<int, string>();
break;
case DataAction.ResetDimElem:
{
CurrData.ProfElementList = new List<AreaProfiles>();
break;
}
CurrData.ProfElementList = new List<AreaProfiles>();
break;
default:
break;
}
@@ -515,7 +512,7 @@ namespace Test.UI.Components.Pages
if (currArgs.msgUid.StartsWith($"{channelHwOpt}:{windowUid}") && currArgs.newMessage.Length > 2)
{
// deserializzo il dizionario delle risposte...
Dictionary<int, string> rawDict = JsonConvert.DeserializeObject<Dictionary<int, string>>(currArgs.newMessage) ?? new Dictionary<int, string>();
Dictionary<int, string> rawDict = JsonConvert.DeserializeObject<Dictionary<int, string>>(currArgs.newMessage) ?? new Dictionary<int, string>();
if (rawDict.Count > 0)
currHwOption = rawDict;
}