c7a151e530
- Aggiunta chiamata per opzioni hardware - Aggiunto componente per AGBOptionCombo
36 lines
859 B
C#
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
|
|
|
|
}
|
|
} |