Modificato aggiornamento dimensioni split a causa di una variazione delle dimensioni del frame

This commit is contained in:
Annamaria Sassi
2026-02-17 09:47:10 +01:00
parent a886e7f324
commit 9cbe6df807
4 changed files with 41 additions and 10 deletions
+3 -4
View File
@@ -182,7 +182,7 @@ namespace WebWindowComplex.Models
if (m_Shape != (Shapes)value)
{
Shapes oldShape = m_Shape;
Shapes SelShape = (Shapes)value;
m_Shape = (Shapes)value;
// salvo vecchie dimensioni
List<FrameDimension> oldDimensionList = new List<FrameDimension>(DimensionList);
// verifico parametri Dimension
@@ -190,7 +190,7 @@ namespace WebWindowComplex.Models
//double widthVal = oldDimensionList.Where(x => x.sName.Equals("Width")).Select(x => x.dValue).First();
double widthVal = oldDimensionList.Where(x => x.sName.Equals("Width")).Select(x => x.dDimension).First();
// aggiungo Dimensioni
switch (SelShape)
switch (m_Shape)
{
case Shapes.RECTANGLE:
case Shapes.ARC_FULL:
@@ -277,7 +277,7 @@ namespace WebWindowComplex.Models
SearchSash(sashList, this);
// aggiungo Joint
m_JointList.Clear();
switch (SelShape)
switch (m_Shape)
{
case Shapes.RECTANGLE:
case Shapes.RIGHTCHAMFER:
@@ -353,7 +353,6 @@ namespace WebWindowComplex.Models
// break;
// }
//}
m_Shape = SelShape;
}
}
}