diff --git a/Test.UI/Components/Pages/EditJWD.razor b/Test.UI/Components/Pages/EditJWD.razor
index 193fef2..bfda185 100644
--- a/Test.UI/Components/Pages/EditJWD.razor
+++ b/Test.UI/Components/Pages/EditJWD.razor
@@ -7,10 +7,23 @@
+ EC_OnClose="CloseObj">
-
- @*
+
+@if (!string.IsNullOrEmpty(outClose))
+{
+
+ @outClose
+
+}
+else if (!string.IsNullOrEmpty(outSave))
+{
+
+ @outSave
+
+}
+
+@*
IN_ColorMaterialList="@AvailColorMaterialList"
IN_FamilyHardwareList="@AvailFamilyHardwareList"
IN_GlassList="@AvailGlassList"
diff --git a/Test.UI/Components/Pages/EditJWD.razor.cs b/Test.UI/Components/Pages/EditJWD.razor.cs
index eb2c1f0..4e6ecdd 100644
--- a/Test.UI/Components/Pages/EditJWD.razor.cs
+++ b/Test.UI/Components/Pages/EditJWD.razor.cs
@@ -217,6 +217,8 @@ namespace Test.UI.Components.Pages
private async Task SaveJWD(Dictionary CurrArgs)
{
+ outClose = "";
+ outSave = "";
m_CurrArgs = CurrArgs;
// verifico se contiene JWD, lo aggiorno
if (CurrArgs.ContainsKey("Jwd"))
@@ -251,5 +253,17 @@ namespace Test.UI.Components.Pages
#endregion Private Methods
+ ///
+ /// Effettua chiusura oggetto con eventuale save
+ ///
+ ///
+ private void CloseObj(bool reqSave)
+ {
+ outClose = !reqSave ? "Richiesto chiusura!" : "";
+ outSave = reqSave ? "Richiesto salvataggio!" : "";
+ }
+
+ private string outClose = "";
+ private string outSave = "";
}
}
\ No newline at end of file
diff --git a/WebWindowComplex/TableComp.razor.cs b/WebWindowComplex/TableComp.razor.cs
index ff01122..054ce9f 100644
--- a/WebWindowComplex/TableComp.razor.cs
+++ b/WebWindowComplex/TableComp.razor.cs
@@ -17,6 +17,9 @@ namespace WebWindowComplex
{
#region Public Properties
+ ///
+ /// Classe override css x SVG (x rescale)
+ ///
[Parameter]
public string CssSvg { get; set; } = "responsive-svg";
@@ -26,12 +29,23 @@ namespace WebWindowComplex
[Parameter]
public SelectPayload? CurrSelection { get; set; } = null;
+ ///
+ /// Richiesta chiusura JWD (+ refresh)
+ /// se torna true --> richiesta salvataggio
+ /// se torna false --> richiesta revert
+ ///
[Parameter]
public EventCallback EC_OnClose { get; set; }
+ ///
+ /// Evento selezione template
+ ///
[Parameter]
public EventCallback EC_OnSelectedTemplate { get; set; }
+ ///
+ /// Richiesta refresh SVG da JWD
+ ///
[Parameter]
public EventCallback> EC_OnUpdate { get; set; }
@@ -573,10 +587,14 @@ namespace WebWindowComplex
return "";
}
- // Ancora da fare...
+ ///
+ /// Richiesta chiusura SENZA salvataggio (= restore prev)
+ ///
+ ///
protected async Task DoClose()
{
- await EC_OnClose.InvokeAsync(true);
+ editLock = false;
+ await EC_OnClose.InvokeAsync(false);
}
///
@@ -635,7 +653,10 @@ namespace WebWindowComplex
await DoPreviewSvg();
}
- // Ancora da fare..
+ ///
+ /// Richiesta chiusura con salvataggio
+ ///
+ ///
protected async Task DoSave()
{
editLock = false;
diff --git a/WebWindowComplex/WebWindowComplex.csproj b/WebWindowComplex/WebWindowComplex.csproj
index 98a23ff..2048541 100644
--- a/WebWindowComplex/WebWindowComplex.csproj
+++ b/WebWindowComplex/WebWindowComplex.csproj
@@ -6,7 +6,7 @@
net8.0
enable
enable
- 2.7.10.713
+ 2.7.10.715
Annamaria Sassi
Egalware
Componente gestione Configurazioni avanzate Window per LUX
@@ -84,6 +84,13 @@
+
+
+
+
+
+
+
diff --git a/WebWindowConfigurator/WebWindowConfigurator.csproj b/WebWindowConfigurator/WebWindowConfigurator.csproj
index 8ac63fc..c9c2d43 100644
--- a/WebWindowConfigurator/WebWindowConfigurator.csproj
+++ b/WebWindowConfigurator/WebWindowConfigurator.csproj
@@ -6,7 +6,7 @@
net8.0
enable
enable
- 2.7.10.713
+ 2.7.10.715
Annamaria Sassi
Egalware
Componente gestione JWD per LUX
@@ -99,6 +99,13 @@
+
+
+
+
+
+
+