Cambiata gestione lista threshold
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user