Files
gpw_next/GPW.CORE.WRKLOG/Components/WeekSelector.razor.cs
T
2023-01-05 10:25:42 +01:00

54 lines
1.1 KiB
C#

using Microsoft.AspNetCore.Components;
namespace GPW.CORE.WRKLOG.Components
{
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
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
}
}