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 @@