- Gestione soglia quando viene eliminata anta
- Gestione spessore split in anta o meno
This commit is contained in:
@@ -34,28 +34,31 @@ namespace WebWindowComplex.Models
|
||||
m_bSplitStartVert = value;
|
||||
m_ElemDimVertList.Clear();
|
||||
m_ElemDimHorizList.Clear();
|
||||
double thickness = 78;
|
||||
if (ParentArea.ParentArea is Sash)
|
||||
thickness = 60;
|
||||
if (value)
|
||||
{
|
||||
for (int i = 0; i < nSplitQtyVert; i++)
|
||||
{
|
||||
m_ElemDimVertList.Add(new SplitElementDimension(this, i + 1, 78, 0));
|
||||
m_ElemDimVertList.Add(new SplitElementDimension(this, i + 1, thickness, 0));
|
||||
}
|
||||
for (int subArea = 0; subArea < m_SplitVertList.Count; subArea++)
|
||||
{
|
||||
for (int index = 0; index < nSplitQtyHoriz; index++)
|
||||
m_ElemDimHorizList.Add(new SplitElementDimension(this, index + 1, 78, subArea + 1));
|
||||
m_ElemDimHorizList.Add(new SplitElementDimension(this, index + 1, thickness, subArea + 1));
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
for (int i = 0; i < nSplitQtyHoriz; i++)
|
||||
{
|
||||
m_ElemDimHorizList.Add(new SplitElementDimension(this, i + 1, 78, 0));
|
||||
m_ElemDimHorizList.Add(new SplitElementDimension(this, i + 1, thickness, 0));
|
||||
}
|
||||
for (int subArea = 0; subArea < m_SplitHorizList.Count; subArea++)
|
||||
{
|
||||
for (int index = 0; index < nSplitQtyVert; index++)
|
||||
m_ElemDimVertList.Add(new SplitElementDimension(this, index + 1, 78, subArea + 1));
|
||||
m_ElemDimVertList.Add(new SplitElementDimension(this, index + 1, thickness, subArea + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user