using Microsoft.AspNetCore.Components;
using WebWindowComplex.Models;
namespace WebWindowComplex.Compo
{
public partial class CardFrame
{
///
/// Frame corrente
///
[Parameter]
public Frame FrameWindow { get; set; } = null!;
///
/// Lista di sash
///
[Parameter]
public List SashList { get; set; } = null!;
///
/// Lista di split
///
[Parameter]
public List SplitList { get; set; } = null!;
///
/// Evento per cambiare tutti i Joints
///
[Parameter]
public EventCallback EC_ChangeAllJoints { get; set; }
///
/// Evento per aggiungere sash
///
[Parameter]
public EventCallback EC_AddSash { get; set; }
///
/// Evento per aggiungere split
///
[Parameter]
public EventCallback EC_AddSplit { get; set; }
///
/// Evento per tornare nella pagine Tree
///
[Parameter]
public EventCallback EC_ReqClose { get; set; }
///
/// Sollevo evento richiesta copia sash
///
///
private async Task ChangeAllJoints(Json.WindowConst.Joints JointType, Area a)
{
var Args = new DataChangeJoints
{
currJointType = JointType,
currArea = a,
};
await EC_ChangeAllJoints.InvokeAsync(Args);
}
///
/// Sollevo evento richiesta aggiunta sash
///
///
private async Task AddSash()
{
await EC_AddSash.InvokeAsync(true);
}
///
/// Sollevo evento richiesta aggiunta window
///
///
private async Task AddSplit()
{
await EC_AddSplit.InvokeAsync(true);
}
///
/// Sollevo evento per tornare alla pagina Tree
///
private void ReqClose()
{
_ = EC_ReqClose.InvokeAsync(true);
}
}
///
/// Classe per raggruppare oggetti che servono per copiare Sash
///
public class DataChangeJoints
{
public Json.WindowConst.Joints currJointType { get; set; }
public Area currArea { get; set; }
}
}