using Microsoft.AspNetCore.Components; using WebWindowComplex.Models; namespace WebWindowComplex.Compo { public partial class EditSplitElement { #region Public Properties /// /// Element corrente /// [Parameter] public SplitElementDimension CurrRec { get; set; } = null!; [Parameter] public EventCallback EC_Update { get; set; } /// /// Livello di accesso (utente base) /// [CascadingParameter(Name = "User")] public bool User { get; set; } = false!; #endregion Public Properties #region Private Properties /// /// Metodo per aggiornare element corrente /// private double updateVal { get => CurrRec.dDimension; set { if (CurrRec.dDimension != value) { CurrRec.dDimension = value; _ = EC_Update.InvokeAsync(CurrRec); } } } private string Title() { return "Min: " + CurrRec.dMinDim + ", Max: " + CurrRec.dMaxDim; } //private string name() //{ // string ans = ""; // if (CurrRec.nSubArea > 0) // ans = ans + "A:" + CurrRec.nSubArea + ", "; // ans = ans + "N:" + CurrRec.nIndex; // return ans; //} #endregion Private Properties } }