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 FrameBottomRail
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Frame corrente
|
|
/// </summary>
|
|
[CascadingParameter(Name = "CurrFrameWindow")]
|
|
public Frame CurrFrame { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public EventCallback<Frame> EC_UpdateFrame { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Properties
|
|
|
|
/// <summary>
|
|
/// Aggiornamento element Bottom Rail
|
|
/// </summary>
|
|
/// <param name="updRec"></param>
|
|
/// <returns></returns>
|
|
private async Task UpdateElement(ElementDimension updRec)
|
|
{
|
|
// cerco il record
|
|
var currRec = CurrFrame.BottomRailElemDimList.FirstOrDefault(x => x.ParentArea == updRec.ParentArea && x.nIndex == updRec.nIndex);
|
|
// lo aggiorno
|
|
if (updRec != null)
|
|
{
|
|
currRec = updRec;
|
|
await EC_UpdateFrame.InvokeAsync(CurrFrame);
|
|
}
|
|
}
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |