- Gestione soglia quando viene eliminata anta
- Gestione spessore split in anta o meno
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user