using Microsoft.AspNetCore.Components;
using WebWindowComplex.Models;
namespace WebWindowComplex.Compo
{
public partial class EditJoint
{
#region Public Properties
///
/// Joint corrente
///
[Parameter]
public Joint CurrRec { get; set; } = null!;
[Parameter]
public EventCallback EC_Update { get; set; }
///
/// Livello di accesso (utente base)
///
[CascadingParameter(Name = "User")]
public bool User { get; set; } = false!;
#endregion Public Properties
#region Private Properties
///
/// Metodo per aggiornare joint corrente
///
private int CurrJoint
{
get => CurrRec.SelJointTypeIndex;
set
{
if (CurrRec.SelJointTypeIndex != value)
{
CurrRec.SelJointTypeIndex = value;
_ = EC_Update.InvokeAsync(CurrRec);
}
}
}
#endregion Private Properties
}
}