35 lines
790 B
C#
35 lines
790 B
C#
using Microsoft.AspNetCore.Components;
|
|
using WebWindowComplex.Models;
|
|
|
|
namespace WebWindowComplex.Compo
|
|
{
|
|
public partial class EditDimensions
|
|
{
|
|
#region Public Properties
|
|
|
|
[Parameter]
|
|
public FrameDimension CurrRec { get; set; } = null!;
|
|
|
|
[Parameter]
|
|
public EventCallback<FrameDimension> EC_Update { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Properties
|
|
|
|
private double CurrVal
|
|
{
|
|
get => CurrRec.dValue;
|
|
set
|
|
{
|
|
if (CurrRec.dValue != value)
|
|
{
|
|
CurrRec.dValue = value;
|
|
_ = EC_Update.InvokeAsync(CurrRec);
|
|
}
|
|
}
|
|
}
|
|
|
|
#endregion Private Properties
|
|
}
|
|
} |