Files
mapo-core/MP.Land/Components/CompareConfig.razor.cs
T
2024-07-19 11:04:18 +02:00

52 lines
1.3 KiB
C#

using Microsoft.AspNetCore.Components;
using MP.AppAuth.Models;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace MP.Land.Components
{
public partial class CompareConfig
{
#region Public Properties
[Parameter]
public EventCallback<string> EC_reqAct { get; set; }
[Parameter]
public List<ConfigModel> ListConfigLoc { get; set; } = new List<ConfigModel>();
[Parameter]
public List<ConfigModel> ListConfigRem { get; set; } = new List<ConfigModel>();
[Parameter]
public bool ShowDetail { get; set; } = false;
#endregion Public Properties
#region Protected Properties
protected int numLoc { get; set; } = 0;
protected int numRem { get; set; } = 0;
#endregion Protected Properties
#region Protected Methods
protected override void OnParametersSet()
{
numLoc = ListConfigLoc != null ? ListConfigLoc.Count : 0;
numRem = ListConfigRem != null ? ListConfigRem.Count : 0;
}
/// <summary>
/// Report richiesta confronto x Config
/// </summary>
protected async Task ReqCompare()
{
await EC_reqAct.InvokeAsync("Config");
}
#endregion Protected Methods
}
}