Aggiunti element per Bottom rail

This commit is contained in:
Annamaria Sassi
2026-01-29 18:00:18 +01:00
parent be0ea6e42d
commit 41cd75cdf8
10 changed files with 118 additions and 26 deletions
+18 -2
View File
@@ -57,7 +57,11 @@ namespace WebWindowComplex.Models
// m_SashArcElement = value!;
// }
//}
public List<ElementDimension> BottomRailElemDimList
{
get => m_BottomRailElemDimList;
set => m_BottomRailElemDimList = value;
}
public List<Hardware> HardwareList
{
get
@@ -423,6 +427,16 @@ namespace WebWindowComplex.Models
{
if (value >= 0)
{
if (value > m_nSashBottomRailQty)
{
// Aggiungo un element
BottomRailElemDimList.Add(new ElementDimension(this, BottomRailElemDimList.Count + 1, 78));
}
else if (value < m_nSashBottomRailQty)
{
// Elimino un element
BottomRailElemDimList.RemoveAt(BottomRailElemDimList.Count - 1);
}
m_nSashBottomRailQty = value;
if (m_nSashBottomRailQty > 0)
{
@@ -801,6 +815,8 @@ namespace WebWindowComplex.Models
JsonSash JsonSash = new JsonSash(m_bIsSashVertical, m_SashType, m_bSashBottomRail, m_nSashBottomRailQty, currHwId, GroupId);
foreach (var SashDimension in SashList)
JsonSash.SashList.Add(SashDimension.Serialize());
foreach (var BottomRailDim in BottomRailElemDimList)
JsonSash.BottomRailElemDimList.Add(BottomRailDim.Serialize());
if (HwOptionList.Count > 0)
{
foreach (var HwOption in HwOptionList)
@@ -1022,7 +1038,7 @@ namespace WebWindowComplex.Models
private int m_nSashBottomRailQty;
private List<ElementDimension> m_ElementDimensionList = new List<ElementDimension>();
private List<ElementDimension> m_BottomRailElemDimList = new List<ElementDimension>();
private List<IdNameStruct> m_OrientationSashTypeList = new List<IdNameStruct>
{
new IdNameStruct((int)OrientationSash.VERTICAL, "Vertical"),