using Microsoft.AspNetCore.Components;
using WebWindowComplex.Models;
namespace WebWindowComplex.Compo
{
public partial class SashBottomRail
{
#region Public Properties
///
/// Sash corrente rispetto alla lista Sash
///
[CascadingParameter(Name = "CurrSashGroup")]
public Sash SashGroup { get; set; } = null!;
[Parameter]
public EventCallback EC_UpdateSash { get; set; }
#endregion Public Properties
#region Private Properties
///
/// Aggiornamento element
///
///
///
private async Task UpdateElement(ElementDimension updRec)
{
// cerco il record
var currRec = SashGroup.BottomRailElemDimList.FirstOrDefault(x => x.ParentArea == updRec.ParentArea && x.nIndex == updRec.nIndex);
// lo aggiorno
if (updRec != null)
{
currRec = updRec;
await EC_UpdateSash.InvokeAsync(SashGroup);
}
}
#endregion Private Properties
}
}