using Microsoft.AspNetCore.Components; using WebWindowTest.Models; using static WebWindowTest.Json.WindowConst; namespace WebWindowTest.Compo { public partial class CardFill { #region Public Properties /// /// Indice del fill corrente rispetto alla lista fill /// [Parameter] public int CurrIndex { get; set; } = 0; /// /// Fill corrente rispetto alla lista fill /// [Parameter] public Fill CurrFill { get; set; } = null!; /// /// Evento per tornare nella pagine Tree /// [Parameter] public EventCallback EC_ReqClose { get; set; } #endregion Public Properties #region Private Methods /// /// Metodo per tornare alla pagina Tree /// private void ReqClose() { _ = EC_ReqClose.InvokeAsync(true); } /// /// Calcola bottone selezionato per il Fill /// /// private string buttonFillCss(FillTypes reqFillTypes) { return (CurrFill.SelFillType == reqFillTypes) ? "btn btn-secondary btn-sm" : "btn btn-outline-secondary btn-sm"; } #endregion Private Methods } }