Modificato aggiornamento dimensioni sottoaree
This commit is contained in:
@@ -1266,9 +1266,37 @@ namespace WebWindowComplex
|
||||
SpElemList.ElementAt(i).SetNameElement(profileNameList.ElementAt(i));
|
||||
SpElemList.ElementAt(i).SetMinDimension(Window.m_ParameterList.GetValueOrDefault(SpElemList.ElementAt(i).sName + "_DimMin"));
|
||||
SpElemList.ElementAt(i).SetMaxDimension(Window.m_ParameterList.GetValueOrDefault(SpElemList.ElementAt(i).sName + "_DimMax"));
|
||||
if (SpElemList.ElementAt(i).dDimension > SpElemList.ElementAt(i).dMaxDim)
|
||||
SpElemList.ElementAt(i).SetDimension(SpElemList.ElementAt(i).dMaxDim);
|
||||
else if (SpElemList.ElementAt(i).dDimension < SpElemList.ElementAt(i).dMinDim)
|
||||
SpElemList.ElementAt(i).SetDimension(SpElemList.ElementAt(i).dMinDim);
|
||||
//string overlapName = "";
|
||||
//if (split.AreaList.ElementAt(i).AreaList.First() is Sash &&
|
||||
// split.AreaList.ElementAt(i + 1).AreaList.First() is Sash ||
|
||||
// (split.AreaList.ElementAt(i).AreaList.First() is Fill &&
|
||||
// split.AreaList.ElementAt(i + 1).AreaList.First() is Fill))
|
||||
//{
|
||||
// overlapName = string.Join("_", SpElemList.ElementAt(i).sName.Split('_').Skip(1)) + "_Overlap";
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// if (split.ElemDimVertList.Contains(SpElemList.ElementAt(i)))
|
||||
// {
|
||||
// overlapName = string.Join("_", SpElemList.ElementAt(i).sName.Split('_').Skip(1)) + "_Top_Overlap";
|
||||
// }
|
||||
// else if (split.ElemDimHorizList.Contains(SpElemList.ElementAt(i)))
|
||||
// {
|
||||
// if (split.AreaList.ElementAt(i).AreaList.First() is Sash)
|
||||
// overlapName = string.Join("_", SpElemList.ElementAt(i).sName.Split('_').Skip(1)) + "_Bottom_Overlap";
|
||||
// else
|
||||
// overlapName = string.Join("_", SpElemList.ElementAt(i).sName.Split('_').Skip(1)) + "_Top_Overlap";
|
||||
// }
|
||||
//}
|
||||
//SpElemList.ElementAt(i).SetOverlapElement(Window.m_ParameterList.GetValueOrDefault(overlapName));
|
||||
string overlapName = string.Join("_", SpElemList.ElementAt(i).sName.Split('_').Skip(1));
|
||||
SpElemList.ElementAt(i).SetOverlapElement(Window.m_ParameterList.GetValueOrDefault(overlapName + "_Overlap"));
|
||||
}
|
||||
split.UpdateSubAreaSplit();
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1278,6 +1306,10 @@ namespace WebWindowComplex
|
||||
item.SetMaxDimension(Window.m_ParameterList.GetValueOrDefault(item.sName + "_DimMax"));
|
||||
string overlapName = string.Join("_", item.sName.Split('_').Skip(1));
|
||||
item.SetOverlapElement(Window.m_ParameterList.GetValueOrDefault(overlapName + "_Overlap"));
|
||||
if (item.dDimension > item.dMaxDim)
|
||||
item.SetDimension(item.dMaxDim);
|
||||
else if (item.dMaxDim < item.dMinDim)
|
||||
item.SetDimension(item.dMinDim);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user