Files
mapo-iob-man/IOB-MAN/Components/Compo/DataParetoList.razor.cs
T
2025-06-17 09:15:06 +02:00

44 lines
1.1 KiB
C#

using IOB_MAN.Core.DTO;
using Microsoft.AspNetCore.Components;
namespace IOB_MAN.Components.Compo
{
public partial class DataParetoList
{
#region Public Properties
[Parameter]
public string CompoHeight { get; set; } = "300px";
[Parameter]
public List<FluxLogStatsDTO.ParetoVals> SearchRecords { get; set; } = new List<FluxLogStatsDTO.ParetoVals>();
#endregion Public Properties
#region Protected Properties
protected List<FluxLogStatsDTO.ParetoVals> ListRecords { get; set; } = new List<FluxLogStatsDTO.ParetoVals>();
#endregion Protected Properties
#region Protected Methods
protected override void OnParametersSet()
{
ForceReload();
}
#endregion Protected Methods
#region Private Methods
private void ForceReload()
{
ListRecords = SearchRecords
.OrderByDescending(x => x.Freq)
.ToList();
}
#endregion Private Methods
}
}