- Gestione soglia quando viene eliminata anta

- Gestione spessore split in anta o meno
This commit is contained in:
Annamaria Sassi
2026-03-04 14:48:23 +01:00
parent 76b11e7ba1
commit 2aa207d0d7
9 changed files with 83 additions and 31 deletions
+39 -13
View File
@@ -90,20 +90,27 @@ namespace WebWindowComplex.Models
m_SelThreshold = newThreshold;
else
m_SelThreshold = new Threshold(3, "Bottom");
string profileName = "";
if (m_SelThreshold.Name.Equals("Threshold"))
profileName = "Frame_Sash_Threshold";
else
profileName = "Frame_Sash_Bottom";
ElementDimensionList.First().SetNameElement(profileName);
ElementDimensionList.First().SetMinDimension(Window.m_ParameterList.GetValueOrDefault(profileName + "_DimMin"));
ElementDimensionList.First().SetMaxDimension(Window.m_ParameterList.GetValueOrDefault(profileName + "_DimMax"));
ElementDimensionList.First().SetDimension(Window.m_ParameterList.GetValueOrDefault(profileName + "_DimStd"));
string overlapName = "Sash_Bottom_Overlap";
ElementDimensionList.First().SetOverlapElement(Window.m_ParameterList.GetValueOrDefault(overlapName));
if (AreaList.Count > 0)
UpdateElemDimension();
}
}
public string SelThresholdFromName
{
get{
return m_SelThreshold.Name;
}
set
{
// verifica ci sia un valore...
if (!string.IsNullOrEmpty(value) && m_ThresholdList != null && m_ThresholdList.Count > 0)
{
SearchAreaList(this, AvailHeightArea(), "Height");
m_SelThreshold = m_ThresholdList.Where(x => x.Name.Equals(value)).First();
UpdateElemDimension();
}
else
{
m_SelThreshold = m_ThresholdList!.FirstOrDefault() ?? new Threshold(3, "Bottom");
UpdateElemDimension();
}
}
}
@@ -722,6 +729,25 @@ namespace WebWindowComplex.Models
}
}
internal void UpdateElemDimension()
{
string profileName = "";
if (m_SelThreshold.Name.Equals("Threshold"))
profileName = "Frame_Sash_Threshold";
else
profileName = "Frame_Sash_Bottom";
ElementDimensionList.First().SetNameElement(profileName);
ElementDimensionList.First().SetMinDimension(Window.m_ParameterList.GetValueOrDefault(profileName + "_DimMin"));
ElementDimensionList.First().SetMaxDimension(Window.m_ParameterList.GetValueOrDefault(profileName + "_DimMax"));
ElementDimensionList.First().SetDimension(Window.m_ParameterList.GetValueOrDefault(profileName + "_DimStd"));
string overlapName = "Sash_Bottom_Overlap";
ElementDimensionList.First().SetOverlapElement(Window.m_ParameterList.GetValueOrDefault(overlapName));
if (AreaList.Count > 0)
{
SearchAreaList(this, AvailHeightArea(), "Height");
}
}
#endregion Internal Methods
#region Private Fields