Aggiunta Threshold in Frame

This commit is contained in:
Annamaria Sassi
2025-12-22 14:44:30 +01:00
parent 5ad4baa471
commit 10b63ff6b6
18 changed files with 156 additions and 40 deletions
+8 -2
View File
@@ -42,10 +42,16 @@
</div>
<div class="input-group mb-2">
<label class="input-group-text">Tipology</label>
<select class="form-select">
<select class="form-select" @bind="SelThreshold">
@foreach (var item in Frame.m_ThresholdList)
{
<option value="@(item.Type)">@(item.Name)</option>
}
</select>
@* <select class="form-select">
<option value="0">Soglia</option>
<option value="1">Sgocciolatoio</option>
</select>
</select> *@
</div>
</div>
</div>
+22 -2
View File
@@ -1,3 +1,4 @@
using Egw.Window.Data;
using Microsoft.AspNetCore.Components;
using WebWindowComplex.Models;
@@ -76,8 +77,27 @@ namespace WebWindowComplex.Compo
svgNoHw = true
};
_ = EC_UpdatePreview.InvokeAsync(args);
//_ = EC_ReqOptionHw.InvokeAsync(CurrFrameWindow);
//_ = EC_UpdateShape.InvokeAsync(CurrFrameWindow);
}
}
}
/// <summary>
/// Metodo per selezionare threshold
/// </summary>
protected int SelThreshold
{
get => CurrFrameWindow.SelThresholdFromType;
set
{
if (CurrFrameWindow.SelThresholdFromType != value)
{
CurrFrameWindow.SelThresholdFromType = value;
var args = new DataUpdateFrame()
{
currFrame = CurrFrameWindow,
svgNoHw = false
};
_ = EC_UpdatePreview.InvokeAsync(args);
}
}
}