Aggiunti element per Bottom rail
This commit is contained in:
@@ -99,8 +99,18 @@ namespace WebWindowComplex.Models
|
||||
{
|
||||
if (m_nBottomRailQty >= 0)
|
||||
{
|
||||
if(value > m_nBottomRailQty)
|
||||
{
|
||||
// Aggiungo un element
|
||||
BottomRailElemDimList.Add(new ElementDimension(this, BottomRailElemDimList.Count + 1, 78));
|
||||
}
|
||||
else if (value < m_nBottomRailQty)
|
||||
{
|
||||
// Elimino un element
|
||||
BottomRailElemDimList.RemoveAt(BottomRailElemDimList.Count - 1);
|
||||
}
|
||||
m_nBottomRailQty = value;
|
||||
if (m_nBottomRailQty > 0)
|
||||
if (value > 0)
|
||||
{
|
||||
m_bBottomRail = true;
|
||||
}
|
||||
@@ -112,6 +122,12 @@ namespace WebWindowComplex.Models
|
||||
}
|
||||
}
|
||||
|
||||
public List<ElementDimension> BottomRailElemDimList
|
||||
{
|
||||
get => m_BottomRailElemDimList;
|
||||
set => m_BottomRailElemDimList = value;
|
||||
}
|
||||
|
||||
public List<FrameDimension> DimensionList
|
||||
{
|
||||
get => m_DimensionList;
|
||||
@@ -477,6 +493,8 @@ namespace WebWindowComplex.Models
|
||||
if (nCounterGroup < GroupId)
|
||||
Area.nCounterGroup = GroupId;
|
||||
JsonFrame JsonFrame = new JsonFrame(m_Shape, m_SelThreshold.Name, m_bBottomRail, m_nBottomRailQty, GroupId);
|
||||
foreach (var BottomRailDim in BottomRailElemDimList)
|
||||
JsonFrame.BottomRailElemDimList.Add(BottomRailDim.Serialize());
|
||||
//if (FrameArcElem != null)
|
||||
// JsonFrame.ArcElement = FrameArcElem.Serialize();
|
||||
//else
|
||||
@@ -751,9 +769,11 @@ namespace WebWindowComplex.Models
|
||||
private List<Threshold> m_ThresholdList = new List<Threshold>();
|
||||
|
||||
private List<FrameDimension> m_DimensionList = new List<FrameDimension>();
|
||||
|
||||
|
||||
private List<ElementDimension> m_ElementDimensionList = new List<ElementDimension>();
|
||||
|
||||
private List<ElementDimension> m_BottomRailElemDimList = new List<ElementDimension>();
|
||||
|
||||
private List<Joint> m_JointList = new List<Joint>();
|
||||
|
||||
private int m_nBottomRailQty = 0;
|
||||
|
||||
Reference in New Issue
Block a user