42 lines
1.1 KiB
C#
42 lines
1.1 KiB
C#
namespace Lux.UI.Components.Compo.Templates
|
|
{
|
|
public partial class TemplateMan
|
|
{
|
|
#region Public Properties
|
|
|
|
/// <summary>
|
|
/// Modello dell'offerta corrente (bindato dal genitore).
|
|
/// </summary>
|
|
[Parameter]
|
|
public TemplateModel CurrRecord { get; set; } = null!;
|
|
|
|
/// <summary>
|
|
/// Callback invocato al chiusura della finestra (con valore <c>true</c> per cancellazione).
|
|
/// </summary>
|
|
[Parameter]
|
|
public EventCallback<bool> EC_Close { get; set; }
|
|
|
|
/// <summary>
|
|
/// Callback invocato al salvataggio con record aggiornato
|
|
/// </summary>
|
|
[Parameter]
|
|
public EventCallback<TemplateModel> EC_Updated { get; set; }
|
|
|
|
#endregion Public Properties
|
|
|
|
#region Private Methods
|
|
|
|
private Task DoCancel()
|
|
{
|
|
return EC_Close.InvokeAsync(true);
|
|
}
|
|
|
|
private Task DoSave()
|
|
{
|
|
// richiesta update con salvataggio record
|
|
return EC_Updated.InvokeAsync(CurrRecord);
|
|
}
|
|
|
|
#endregion Private Methods
|
|
}
|
|
} |