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