Cambiata gestione lista threshold

This commit is contained in:
Annamaria Sassi
2025-12-23 14:29:43 +01:00
parent 703931868a
commit cb2fa4cf4f
11 changed files with 69 additions and 26 deletions
+22 -2
View File
@@ -14,7 +14,7 @@ namespace WebWindowComplex.Models
#region Public Fields
// Lista hardware completa passata dal chiamante del componente
public static List<Threshold> m_ThresholdList = new List<Threshold>();
public static Dictionary<string,List<Threshold>> m_AllThresholdList = new Dictionary<string, List<Threshold>>();
#endregion Public Fields
@@ -52,6 +52,18 @@ namespace WebWindowComplex.Models
}
}
public List<Threshold> ThresholdList
{
get
{
return m_ThresholdList;
}
set
{
m_ThresholdList = value;
}
}
public Threshold SelThreshold
{
get
@@ -340,6 +352,11 @@ namespace WebWindowComplex.Models
#region Public Methods
public void RefreshThresholdList()
{
m_ThresholdList.Clear();
m_ThresholdList = m_AllThresholdList.GetValueOrDefault(ParentWindow.sProfilePath);
}
public override Frame Copy(Area ParentArea)
{
return null;
@@ -361,7 +378,8 @@ namespace WebWindowComplex.Models
newFrame.SetSelShape(Shapes.RECTANGLE);
newFrame.SetBottomRail(false);
newFrame.SetBottomRailQty(0);
newFrame.SetSelThresholdFromName(m_ThresholdList.FirstOrDefault().Name);
newFrame.RefreshThresholdList();
newFrame.SetSelThresholdFromName(m_AllThresholdList.GetValueOrDefault(Window.sProfilePath).FirstOrDefault().Name);
//newFrame.FrameArcElem = null;
return newFrame;
}
@@ -525,6 +543,8 @@ namespace WebWindowComplex.Models
private Threshold m_SelThreshold;
private List<Threshold> m_ThresholdList = new List<Threshold>();
private List<FrameDimension> m_DimensionList = new List<FrameDimension>();
private List<Joint> m_JointList = new List<Joint>();