a8047f4ca8
- Corretto aggiornamento dimensioni a causa di una modifica (no gestione split grid)
42 lines
1.0 KiB
C#
42 lines
1.0 KiB
C#
using Microsoft.AspNetCore.Components;
|
|
using WebWindowComplex.Models;
|
|
|
|
namespace WebWindowComplex.Compo
|
|
{
|
|
public partial class EditFrameDimensions
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Frame dimension corrente
|
|
/// </summary>
|
|
[Parameter]
|
|
public FrameDimension CurrRec { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public EventCallback<FrameDimension> EC_Update { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Properties
|
|
|
|
/// <summary>
|
|
/// Metodo per aggiornare valore dimension
|
|
/// </summary>
|
|
private double CurrVal
|
|
{
|
|
get => CurrRec.dDimension;
|
|
set
|
|
{
|
|
if (CurrRec.dDimension != value)
|
|
{
|
|
CurrRec.dDimension = value;
|
|
CurrRec.dDimension = value;
|
|
_ = EC_Update.InvokeAsync(CurrRec);
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |