Update catena eventi x richiesta reset dizionario

This commit is contained in:
Samuele Locatelli
2025-11-03 16:42:37 +01:00
parent 15acb8936f
commit d4e1a73d57
8 changed files with 159 additions and 74 deletions
+27 -15
View File
@@ -31,6 +31,12 @@ namespace WebWindowComplex.Compo
[Parameter]
public EventCallback<bool> EC_ReqClose { get; set; }
/// <summary>
/// Evento per richiedere reset dizionario Shape
/// </summary>
[Parameter]
public EventCallback<bool> EC_ReqResetDictShape { get; set; }
/// <summary>
/// Evento per aggiornare info frame (es cambaire tutti i Joints)
/// </summary>
@@ -63,6 +69,27 @@ namespace WebWindowComplex.Compo
#endregion Public Properties
#region Protected Properties
protected int SelShapeIndex
{
get => FrameWindow.SelShapeIndex;
set
{
if (FrameWindow.SelShapeIndex != value)
{
// richiesta reset dict shape
_ = EC_ReqResetDictShape.InvokeAsync(true);
//foreach(var s in SashList)
// s.SelHardwareFromId = "000000";
FrameWindow.SelShapeIndex = value;
_ = EC_UpdateShape.InvokeAsync(FrameWindow);
}
}
}
#endregion Protected Properties
#region Private Methods
/// <summary>
@@ -123,21 +150,6 @@ namespace WebWindowComplex.Compo
}
}
protected int SelShapeIndex
{
get => FrameWindow.SelShapeIndex;
set
{
if (FrameWindow.SelShapeIndex != value)
{
//foreach(var s in SashList)
// s.SelHardwareFromId = "000000";
FrameWindow.SelShapeIndex = value;
_ = EC_UpdateShape.InvokeAsync(FrameWindow);
}
}
}
/// <summary>
/// Report aggiornamento joint
/// </summary>