Aggiornata gestione aggiunta split in frame (da testare)

This commit is contained in:
Annamaria Sassi
2025-12-23 17:21:18 +01:00
parent c2aee51edb
commit 5cf6b3d870
4 changed files with 17 additions and 10 deletions
+7 -7
View File
@@ -145,19 +145,19 @@ namespace WebWindowComplex.Models
List<Splitted> newSplittedList = new List<Splitted>();
for (int i = 0; i < 2; i++)
newSplittedList.Add(Splitted.CreateSplitted(SplitArea));
// Inserisco nelle aree Splitted il Fill salvato e un Fill uguale (e setto ParentArea del fill)
ContentArea[0].SetParentArea(newSplittedList[0]);
newSplittedList[0].AreaList.Add(ContentArea[0]);
// Inserisco nelle aree Splitted Fill e la struttura precedente (e setto ParentArea del fill)
ContentArea[0].SetParentArea(newSplittedList[1]);
newSplittedList[1].AreaList.Add(ContentArea[0]);
if (ContentArea[0] is Fill)
{
Fill fill1 = (Fill)ContentArea[0];
Fill fill2 = Fill.CreateFill(newSplittedList[1], fill1.FillType);
newSplittedList[1].AreaList.Add(fill2);
Fill fill2 = Fill.CreateFill(newSplittedList[0], fill1.FillType);
newSplittedList[0].AreaList.Add(fill2);
}
else
{
Fill fill2 = Fill.CreateFill(newSplittedList[1], FillTypes.GLASS);
newSplittedList[1].AreaList.Add(fill2);
Fill fill2 = Fill.CreateFill(newSplittedList[0], FillTypes.GLASS);
newSplittedList[0].AreaList.Add(fill2);
}
// All'area Split aggiunto le due aree Splitted
for (int i = 0; i < 2; i++)
+1 -1
View File
@@ -19,7 +19,7 @@ namespace WebWindowComplex.Models
// Lista hardware completa passata dal chiamante del componente
public static List<Hardware> m_HardwareCompleteList = new List<Hardware>();
// Lista hardware completa passata dal chiamante del componente
// Lista famiglia hardware completa passata dal chiamante del componente
public static List<string> s_FamilyHardwareList = new List<string>();
#endregion Public Fields