Aggiornati eventi ricalcolo hw option e forma ante

This commit is contained in:
Annamaria Sassi
2025-10-31 14:53:18 +01:00
parent 64a2019b6d
commit 0caf3ef83b
10 changed files with 167 additions and 83 deletions
+22
View File
@@ -20,6 +20,8 @@ namespace WebWindowComplex.Models
#region Public Events
public event EventHandler<OnPreviewEventArgs> OnPreview = delegate { };
public event EventHandler<OnReqShapeEventArgs> OnReqShape = delegate { };
public event EventHandler<OnReqHwOptEventArgs> OnReqHwOption = delegate { };
#endregion Public Events
@@ -103,6 +105,26 @@ namespace WebWindowComplex.Models
}
}
internal void OnReqShapePreview(string sJwd, int groupId)
{
OnReqShapeEventArgs e = new OnReqShapeEventArgs(sJwd, groupId);
EventHandler<OnReqShapeEventArgs> handler = OnReqShape;
if (handler != null)
{
handler(this, e);
}
}
internal void OnReqHwOptionPreview(string sJwd, int groupId)
{
OnReqHwOptEventArgs e = new OnReqHwOptEventArgs(sJwd, groupId);
EventHandler<OnReqHwOptEventArgs> handler = OnReqHwOption;
if (handler != null)
{
handler(this, e);
}
}
/// <summary>
/// Serializzazione dell'oggetto windows
/// </summary>