Files
webwindowconfigurator/WebWindowTest/Compo/EditJoint.razor.cs
T
2026-01-16 15:10:19 +01:00

42 lines
960 B
C#

using Microsoft.AspNetCore.Components;
using WebWindowTest.Models;
namespace WebWindowTest.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; }
#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
}
}