Aggiunta Threshold in Frame
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user