Cambiata gestione lista threshold
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user