From 8f0b54e30f88d784855cc3861293bcd9e94a428f Mon Sep 17 00:00:00 2001 From: Annamaria Sassi Date: Thu, 23 Apr 2026 16:48:37 +0200 Subject: [PATCH] Modificata aggiunta Inglesina in Frame e Vetro fisso --- WebWindowComplex/Compo/AreaSplit.razor | 5 ++ WebWindowComplex/Compo/AreaSplit.razor.cs | 10 ++++ WebWindowComplex/Compo/CardTree.razor | 53 ++++++++++++------- WebWindowComplex/Compo/CardTree.razor.cs | 28 ++++++++++ WebWindowComplex/WebWindowComplex.csproj | 9 +++- .../WebWindowConfigurator.csproj | 11 +++- 6 files changed, 96 insertions(+), 20 deletions(-) diff --git a/WebWindowComplex/Compo/AreaSplit.razor b/WebWindowComplex/Compo/AreaSplit.razor index 7d42284..21d3707 100644 --- a/WebWindowComplex/Compo/AreaSplit.razor +++ b/WebWindowComplex/Compo/AreaSplit.razor @@ -18,6 +18,11 @@ } +
+
+ +
+
diff --git a/WebWindowComplex/Compo/AreaSplit.razor.cs b/WebWindowComplex/Compo/AreaSplit.razor.cs index e8178e8..bc86baf 100644 --- a/WebWindowComplex/Compo/AreaSplit.razor.cs +++ b/WebWindowComplex/Compo/AreaSplit.razor.cs @@ -60,6 +60,16 @@ namespace WebWindowComplex.Compo return EC_UpdateSplitted.InvokeAsync(CurrSplitted); } + /// + /// Metodo per aggiungere prima sash + /// + /// + private Task RaiseAddInglesina() + { + CurrSplitted.AddInglesina(); + return EC_UpdateSplitted.InvokeAsync(CurrSplitted); + } + #endregion Private Methods } } \ No newline at end of file diff --git a/WebWindowComplex/Compo/CardTree.razor b/WebWindowComplex/Compo/CardTree.razor index a41b7b7..592b846 100644 --- a/WebWindowComplex/Compo/CardTree.razor +++ b/WebWindowComplex/Compo/CardTree.razor @@ -80,7 +80,8 @@ } @if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FRAME && - ((SashGroupList.Count == 0 && SplitList.Count == 0) || !(FrameWindow.AreaList.First() is Split))) + ((SashGroupList.Count == 0 && SplitList.Count == 0) || !(FrameWindow.AreaList.First() is Split)) && + FrameWindow.AreaList.FirstOrDefault() != null && FrameWindow.AreaList.First()!.AreaList.Count == 0) { } - @if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FILL && SplittedList != null && SplittedList.Count > 0) + @if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FILL) { int currIndexFill = ItemTableList[i].IndexItem; - Splitted? currSplitted = SplittedList.Where(x => x.AreaList.First().Equals(FillList[currIndexFill])).FirstOrDefault(); - @if (currSplitted != null) + if (FillList.ElementAt(currIndexFill).ParentArea is Frame) { - @if (currSplitted.ParentArea != null && currSplitted.ParentWindow != null) + + } + else if (SplittedList != null && SplittedList.Count > 0) + { + Splitted? currSplitted = SplittedList.Where(x => x.AreaList.First().Equals(FillList[currIndexFill])).FirstOrDefault(); + @if (currSplitted != null) { - + @if (currSplitted.ParentArea != null && currSplitted.ParentWindow != null + && currSplitted.AreaList.FirstOrDefault() != null && currSplitted.AreaList.First()!.AreaList.Count == 0) + { + + } } } } diff --git a/WebWindowComplex/Compo/CardTree.razor.cs b/WebWindowComplex/Compo/CardTree.razor.cs index 2ef9437..d5e0392 100644 --- a/WebWindowComplex/Compo/CardTree.razor.cs +++ b/WebWindowComplex/Compo/CardTree.razor.cs @@ -219,6 +219,34 @@ namespace WebWindowComplex.Compo return EC_UpdateSplitted.InvokeAsync(currSplitted); } + /// + /// Chiamata per aggiungere inglesina in un fill + /// + /// indice del fill + /// + private Task AddInglesinaIntoFill(int currIndexFill) + { + Splitted? currSplitted; + Frame? currFrame; + if (FillList.ElementAt(currIndexFill).ParentArea is Splitted) + { + currSplitted = (Splitted)FillList.ElementAt(currIndexFill).ParentArea; + currSplitted.AddInglesina(); + return EC_UpdateSplitted.InvokeAsync(currSplitted); + } + else if(FillList.ElementAt(currIndexFill).ParentArea is Frame) + { + currFrame = (Frame)FillList.ElementAt(currIndexFill).ParentArea; + currFrame.AddInglesina(); + DataUpdateFrame args = new DataUpdateFrame() + { + currFrame = currFrame + }; + return EC_UpdateFrame.InvokeAsync(args); + } + return null; + } + /// /// Chiamata per copiare sash in fill /// diff --git a/WebWindowComplex/WebWindowComplex.csproj b/WebWindowComplex/WebWindowComplex.csproj index 9de1408..05513ec 100644 --- a/WebWindowComplex/WebWindowComplex.csproj +++ b/WebWindowComplex/WebWindowComplex.csproj @@ -6,7 +6,7 @@ net8.0 enable enable - 3.1.4.1713 + 3.1.4.2316 Annamaria Sassi Egalware Componente gestione Configurazioni avanzate Window per LUX @@ -168,6 +168,13 @@ + + + + + + + diff --git a/WebWindowConfigurator/WebWindowConfigurator.csproj b/WebWindowConfigurator/WebWindowConfigurator.csproj index 96f5746..6f0e597 100644 --- a/WebWindowConfigurator/WebWindowConfigurator.csproj +++ b/WebWindowConfigurator/WebWindowConfigurator.csproj @@ -6,7 +6,7 @@ net8.0 enable enable - 3.1.4.1714 + 3.1.4.2316 Annamaria Sassi Egalware Componente gestione JWD per LUX @@ -269,6 +269,15 @@ + + + + + + + + +