Files
gpw_next/GPW.CORE.WRKLOG/Components/Compo/WeekSelector.razor.cs
T
Samuele Locatelli 5722ad4167 WRKLOG 8.0
- porting blazor 8.0
- riorganizzazione area components
- add componenti da 6
- spostamento ver 6 a old (migrata comunque)
2024-09-04 15:28:37 +02:00

60 lines
1.3 KiB
C#

using GPW.CORE.WRKLOG.Data;
using Microsoft.AspNetCore.Components;
using System.Net.NetworkInformation;
using GPW.CORE.Data.DbModels;
namespace GPW.CORE.WRKLOG.Components.Compo
{
public partial class WeekSelector
{
#region Public Properties
[Parameter]
public EventCallback<bool> CloseReq { get; set; }
[Parameter]
public EventCallback<bool> 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
/// <summary>
/// Indico item selezionato
/// </summary>
protected async void DoClose()
{
await CloseReq.InvokeAsync(true);
}
/// <summary>
/// Indico item selezionato
/// </summary>
protected async void DoSelection()
{
await WeekSelected.InvokeAsync(true);
}
#endregion Protected Methods
}
}