using GPW.CORE.Data.Services; using Microsoft.AspNetCore.Components; namespace GPW.CORE.WRKLOG.Components.Compo { public partial class WeekSelector { #region Public Properties [Parameter] public EventCallback CloseReq { get; set; } [Parameter] public EventCallback WeekSelected { get; set; } #endregion Public Properties #region Protected Properties [Inject] protected MessageService AppMServ { get; set; } = null!; protected DateTime TargetDate { get { return AppMServ.targetDate; } set { AppMServ.targetDate = value; } } #endregion Protected Properties #region Protected Methods /// /// Indico item selezionato /// protected async void DoClose() { await CloseReq.InvokeAsync(true); } /// /// Indico item selezionato /// protected async void DoSelection() { await WeekSelected.InvokeAsync(true); } #endregion Protected Methods } }