Cambiata gestione lista threshold

This commit is contained in:
Annamaria Sassi
2025-12-23 14:29:43 +01:00
parent 703931868a
commit cb2fa4cf4f
11 changed files with 69 additions and 26 deletions
-3
View File
@@ -88,9 +88,6 @@ else if (!string.IsNullOrEmpty(outSave))
}
<div class="card">
<div class="card-body small">
WindowUid: @windowUid
</div>
<div class="card-body small">
@JsonSer
</div>
+4 -4
View File
@@ -91,10 +91,10 @@ namespace Test.UI.Components.Pages
new string("ProfiloSaomad")
};
protected List<Threshold> AvailThresholdList { get; set; } = new List<Threshold>()
protected Dictionary<string, List<Threshold>> AvailThreshold { get; set; } = new Dictionary<string, List<Threshold>>()
{
new Threshold(1, "Bottom"),
new Threshold(3, "Threshold")
{"Profilo78", new List<Threshold>() { new Threshold(1, "Bottom"), new Threshold(3, "Threshold")}},
{"ProfiloSaomad", new List<Threshold>(){ new Threshold(1, "Bottom"), new Threshold(2, "BottomWaterdrip"), new Threshold(3, "Threshold")}}
};
[Inject]
@@ -150,7 +150,7 @@ namespace Test.UI.Components.Pages
Hardware = AvailHardwareList,
Material = AvailMaterialList,
Profile = AvailProfileList,
Threshold = AvailThresholdList
Threshold = AvailThreshold
};
CurrData = new LivePayload()
{
+4 -4
View File
@@ -91,10 +91,10 @@ namespace Test.UI.Components.Pages
new string("ProfiloSaomad")
};
protected List<Threshold> AvailThresholdList { get; set; } = new List<Threshold>()
protected Dictionary<string, List<Threshold>> AvailThreshold { get; set; } = new Dictionary<string, List<Threshold>>()
{
new Threshold(1, "Bottom"),
new Threshold(3, "Threshold")
{"Profilo78", new List<Threshold>() { new Threshold(1, "Bottom"), new Threshold(3, "Threshold")}},
{"ProfiloSaomad", new List<Threshold>(){ new Threshold(1, "Bottom"), new Threshold(2, "BottomWaterdrip"), new Threshold(3, "Threshold")}}
};
[Inject]
@@ -357,7 +357,7 @@ namespace Test.UI.Components.Pages
Hardware = AvailHardwareList,
Material = AvailMaterialList,
Profile = AvailProfileList,
Threshold = AvailThresholdList
Threshold = AvailThreshold
};
}