From c6a3210f7482188b17ea98b235c59ee581448ddb Mon Sep 17 00:00:00 2001 From: Annamaria Sassi Date: Tue, 18 Aug 2026 11:41:46 +0200 Subject: [PATCH] Correzione --- WebWindowComplex/TableComp.razor.cs | 26 ++++--------------- WebWindowComplex/WebWindowComplex.csproj | 8 +++--- .../WebWindowConfigurator.csproj | 3 ++- 3 files changed, 12 insertions(+), 25 deletions(-) diff --git a/WebWindowComplex/TableComp.razor.cs b/WebWindowComplex/TableComp.razor.cs index 98d1870..ec5d2b9 100644 --- a/WebWindowComplex/TableComp.razor.cs +++ b/WebWindowComplex/TableComp.razor.cs @@ -174,6 +174,10 @@ namespace WebWindowComplex await EC_ReqTraduzione.InvokeAsync(tradList); } } + else + { + Log.Info("File Json non trovato"); + } } /// @@ -319,28 +323,8 @@ namespace WebWindowComplex //PendReq.Remove("Profile"); //await EC_PendantAction.InvokeAsync(PendReq); } - if (Vocabulary == null) + if (Vocabulary != null) { - string filePath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Data", "Lemmi.json"); - - if (File.Exists(filePath)) - { - string jsonText = await File.ReadAllTextAsync(filePath); - List? tradList = JsonConvert.DeserializeObject>(jsonText); - if (tradList != null) - { - Log.Info("Richiesta Traduzione"); - prevReqTrad = true; - await EC_ReqTraduzione.InvokeAsync(tradList); - } - } - else - { - Log.Info("File Json non trovato"); - } - } - else - { CurrVocabulary = Vocabulary; TableCDict = Vocabulary.Where(x => x.Key.Contains("CWTableC_")).ToDictionary(x => x.Key, y => y.Value); if ((TableCDict == null || TableCDict.Count != 13) && !prevReqTrad) diff --git a/WebWindowComplex/WebWindowComplex.csproj b/WebWindowComplex/WebWindowComplex.csproj index 0574b63..3b24013 100644 --- a/WebWindowComplex/WebWindowComplex.csproj +++ b/WebWindowComplex/WebWindowComplex.csproj @@ -6,20 +6,21 @@ net8.0 enable enable - 3.1.8.1810 + 3.1.8.1811 Annamaria Sassi Egalware Componente gestione Configurazioni avanzate Window per LUX - + + true content\Data true PreserveNewest PreserveNewest - + @@ -44,3 +45,4 @@ + diff --git a/WebWindowConfigurator/WebWindowConfigurator.csproj b/WebWindowConfigurator/WebWindowConfigurator.csproj index 21dd8d5..e41f60e 100644 --- a/WebWindowConfigurator/WebWindowConfigurator.csproj +++ b/WebWindowConfigurator/WebWindowConfigurator.csproj @@ -6,7 +6,7 @@ net8.0 enable enable - 3.1.8.1810 + 3.1.8.1811 Annamaria Sassi Egalware Componente gestione JWD per LUX @@ -37,3 +37,4 @@ +