From 1ed1658195107b0aad99efdb9bb71fa9c3bcae82 Mon Sep 17 00:00:00 2001 From: Samuele Locatelli Date: Thu, 23 Oct 2025 12:38:45 +0200 Subject: [PATCH] update x gestioen richeiste forme + svg corrette --- Test.UI/Components/Pages/EditJWD.razor.cs | 11 +- Test.UI/Test.UI.csproj | 4 +- WebWindowComplex/Compo/CardSashGroup.razor | 2 +- WebWindowComplex/Models/Sash.cs | 124 ++++++++++-------- WebWindowComplex/TableComp.razor.cs | 87 ++++++++++-- WebWindowComplex/WebWindowComplex.csproj | 22 +++- .../WebWindowConfigurator.csproj | 22 +++- 7 files changed, 195 insertions(+), 77 deletions(-) diff --git a/Test.UI/Components/Pages/EditJWD.razor.cs b/Test.UI/Components/Pages/EditJWD.razor.cs index d3d3379..2eec95d 100644 --- a/Test.UI/Components/Pages/EditJWD.razor.cs +++ b/Test.UI/Components/Pages/EditJWD.razor.cs @@ -125,7 +125,7 @@ namespace Test.UI.Components.Pages protected override async Task OnInitializedAsync() { ConfInit(); - InitialJwd = File.ReadAllText("Data\\AntaSingola.jwd"); + InitialJwd = File.ReadAllText("Data\\FinestraDueAnteSeparate.jwd"); currJwd = InitialJwd; // rileggo altri dati await ReloadData(); @@ -250,8 +250,11 @@ namespace Test.UI.Components.Pages // conversione on-the-fly SVG da mostrare if (!string.IsNullOrEmpty(currArgs.newMessage)) { - if (currArgs.msgUid.StartsWith($"{shapeChannel}:{windowUid}:")) + if (currArgs.msgUid.StartsWith($"{shapeChannel}:{windowUid}")) { + // deserializzo il dizionario delle risposte... + var rawDict = JsonConvert.DeserializeObject>(currArgs.newMessage); +#if false int groupId = 0; // verifica del groupID... int.TryParse(currArgs.msgUid.Replace($"{shapeChannel}:{windowUid}:", ""), out groupId); @@ -262,7 +265,9 @@ namespace Test.UI.Components.Pages else { currGroupShape.Add(groupId, currArgs.newMessage); - } + } +#endif + currGroupShape = rawDict ?? new Dictionary(); CurrData.DictShape = currGroupShape; } await InvokeAsync(StateHasChanged); diff --git a/Test.UI/Test.UI.csproj b/Test.UI/Test.UI.csproj index 4fc0374..f4e6014 100644 --- a/Test.UI/Test.UI.csproj +++ b/Test.UI/Test.UI.csproj @@ -34,8 +34,8 @@ - - + + diff --git a/WebWindowComplex/Compo/CardSashGroup.razor b/WebWindowComplex/Compo/CardSashGroup.razor index 40601fd..97374a8 100644 --- a/WebWindowComplex/Compo/CardSashGroup.razor +++ b/WebWindowComplex/Compo/CardSashGroup.razor @@ -81,7 +81,7 @@