- Correzione per eliminazione inglesina

- Correzione associazione famiglia hardware
This commit is contained in:
Annamaria Sassi
2026-04-29 10:19:54 +02:00
parent 8f0b54e30f
commit 396cecf492
4 changed files with 35 additions and 19 deletions
+5 -14
View File
@@ -123,13 +123,10 @@ namespace WebWindowComplex.Models
if (nSplitQtyVert == 0)
{
ParentArea.AreaList.Remove(this);
Fill newFill = Fill.CreateFill(ParentArea, FillTypes.GLASS);
newFill.SetAreaType(AreaTypes.FILL);
ParentArea.AreaList.Add(newFill);
}
else
{
ElemDimHorizList.RemoveAt(0);
ElemDimHorizList.Clear();
SetSplitShape(SplitShapes.VERTICAL);
SetSplitStartVert(true);
// Controllo quanti split orizzontali ci sono
@@ -228,11 +225,8 @@ namespace WebWindowComplex.Models
List<SplitElementDimension> elemDimList = ElemDimHorizList.Where(x => x.nSubArea == subArea).OrderByDescending(x => x.nIndex).ToList();
for (var SplitIndex = elemDimList.Count - 1; SplitIndex >= value; SplitIndex += -1)
{
elemDimList.RemoveAt(elemDimList.Count - 1);
ElemDimHorizList.Remove(elemDimList.ElementAt(elemDimList.Count - 1));
}
//SplitElementDimension? removeElem = ElemDimHorizList.Where(x => x.nSubArea == subArea).OrderByDescending(x => x.nIndex).FirstOrDefault();
//if (removeElem != null)
// ElemDimHorizList.Remove(removeElem);
}
}
else
@@ -269,13 +263,10 @@ namespace WebWindowComplex.Models
if (nSplitQtyHoriz == 0)
{
ParentArea.AreaList.Remove(this);
Fill newFill = Fill.CreateFill(ParentArea, FillTypes.GLASS);
newFill.SetAreaType(AreaTypes.FILL);
ParentArea.AreaList.Add(newFill);
}
else
{
ElemDimVertList.RemoveAt(0);
ElemDimVertList.Clear();
SetSplitShape(SplitShapes.HORIZONTAL);
SetSplitStartVert(false);
// Controllo quanti split orizzontali ci sono
@@ -386,8 +377,8 @@ namespace WebWindowComplex.Models
// Rimuovo da tutte le sottoaree degli element l'ultimo elemento
for (int subArea = 1; subArea <= ElemDimVertList.Max(x => x.nSubArea); subArea++)
{
SplitElementDimension removeElem = ElemDimVertList.Where(x => x.nSubArea == subArea).OrderByDescending(x => x.nIndex).FirstOrDefault();
ElemDimVertList.Remove(removeElem);
List<SplitElementDimension> elemDimList = ElemDimVertList.Where(x => x.nSubArea == subArea).OrderByDescending(x => x.nIndex).ToList();
ElemDimVertList.Remove(elemDimList.ElementAt(elemDimList.Count - 1));
}
}
}