Files
webwindowconfigurator/WebWindowComplex/Compo/EditSplitElement.razor.cs
T
Annamaria Sassi 3d092b53fb - Modificata gestione elementi split (su dimensione secondaria si specifica solo una larghezza per split)
- Aggiunta gestione profili bottom rail per sash e frame
- Iniziato a gestire dimensione solo luce per sash
2026-02-06 17:48:03 +01:00

57 lines
1.4 KiB
C#

using Microsoft.AspNetCore.Components;
using WebWindowComplex.Models;
namespace WebWindowComplex.Compo
{
public partial class EditSplitElement
{
#region Public Properties
/// <summary>
/// Element corrente
/// </summary>
[Parameter]
public SplitElementDimension CurrRec { get; set; } = null!;
[Parameter]
public EventCallback<SplitElementDimension> 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 element corrente
/// </summary>
private double updateVal
{
get => CurrRec.dDimension;
set
{
if (CurrRec.dDimension != value)
{
CurrRec.dDimension = value;
_ = EC_Update.InvokeAsync(CurrRec);
}
}
}
//private string name()
//{
// string ans = "";
// if (CurrRec.nSubArea > 0)
// ans = ans + "A:" + CurrRec.nSubArea + ", ";
// ans = ans + "N:" + CurrRec.nIndex;
// return ans;
//}
#endregion Private Properties
}
}