Files
webwindowconfigurator/WebWindowComplex/Compo/EditOptionCombo.razor.cs
T
Annamaria Sassi c7a151e530 - Inizio gestione opzioni hardware
- Aggiunta chiamata per opzioni hardware
- Aggiunto componente per AGBOptionCombo
2025-10-27 13:19:24 +01:00

36 lines
859 B
C#

using Microsoft.AspNetCore.Components;
using WebWindowComplex.Models;
namespace WebWindowComplex.Compo
{
public partial class EditOptionCombo
{
#region Public Properties
[Parameter]
public AGBOptionCombo CurrOpt { get; set; } = null!;
[Parameter]
public EventCallback<AGBOptionCombo> EC_Update { get; set; }
#endregion Public Properties
#region Private Properties
private string CurrValue
{
get => CurrOpt.sValue.sValue;
set
{
if (CurrOpt.sValue.sValue != value)
{
CurrOpt.sValue = CurrOpt.ValueList.FirstOrDefault(x => x.sValue == value);
_ = EC_Update.InvokeAsync(CurrOpt);
}
}
}
#endregion Private Properties
}
}