using GPW.CORE.Data.DbModels; using GPW.CORE.Data.DTO; using GPW.CORE.Smart.Data; using Microsoft.AspNetCore.Components; namespace GPW.CORE.Smart.Components { public partial class CompProj { #region Public Properties [Parameter] public int IdxDipCurr { get; set; } = 0; [Parameter] public List? ListProgetti { get; set; } = null; #endregion Public Properties #region Protected Methods /// /// Aggiorno e riporto update /// protected async void DoUpdate(bool forceReload) { if (forceReload) { await ReloadData(); await Task.Delay(1); await InvokeAsync(StateHasChanged); } } protected override async Task OnParametersSetAsync() { await ReloadData(); } #endregion Protected Methods #region Private Properties [Inject] private CoreSmartDataService CDService { get; set; } = null!; private bool isLoading { get; set; } = false; #endregion Private Properties #region Private Methods private async Task ReloadData() { isLoading = true; await Task.Delay(1); isLoading = true; } #endregion Private Methods } }