Files
webwindowconfigurator/WebWindowComplex/Compo/AreaSplit.razor.cs
T
2025-10-13 10:41:03 +02:00

50 lines
1.2 KiB
C#

using Egw.Window.Data;
using Microsoft.AspNetCore.Components;
using WebWindowComplex.Models;
namespace WebWindowComplex.Compo
{
public partial class AreaSplit
{
#region Public Properties
[Parameter]
public List<Sash> CurrSashList { get; set; } = null;
[Parameter]
public Splitted CurrSplitted { get; set; } = null;
[Parameter]
public List<Splitted> CurrSplittedList { get; set; } = null;
[Parameter]
public EventCallback<Data> EC_CopySash { get; set; }
#endregion Public Properties
#region Private Methods
/// <summary>
/// Sollevo evento richiesta copia sash
/// </summary>
/// <returns></returns>
private async Task RaiseCopySash(Splitted item, int indexCurrSash)
{
var Args = new Data
{
splitted = item,
index = indexCurrSash,
};
await EC_CopySash.InvokeAsync(Args);
}
#endregion Private Methods
}
public class Data
{
public Splitted splitted { get; set; }
public int index { get; set; }
}
}