3d092b53fb
- Aggiunta gestione profili bottom rail per sash e frame - Iniziato a gestire dimensione solo luce per sash
42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
using WebWindowComplex.Models;
|
|
|
|
namespace WebWindowComplex.Compo
|
|
{
|
|
public partial class SashBottomRail
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Sash corrente rispetto alla lista Sash
|
|
/// </summary>
|
|
[CascadingParameter(Name = "CurrSashGroup")]
|
|
public Sash SashGroup { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public EventCallback<Sash> EC_UpdateSash { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Properties
|
|
|
|
/// <summary>
|
|
/// Aggiornamento element
|
|
/// </summary>
|
|
/// <param name="updRec"></param>
|
|
/// <returns></returns>
|
|
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
|
|
}
|
|
} |