Gestito parametro di ingresso lista Profili
This commit is contained in:
@@ -12,10 +12,12 @@ namespace WebWindowComplex.Models
|
||||
public class Frame : Area
|
||||
{
|
||||
#region Public Fields
|
||||
|
||||
// Lista hardware completa passata dal chiamante del componente
|
||||
public static Dictionary<string, List<Threshold>> m_AllThresholdList = new Dictionary<string, List<Threshold>>();
|
||||
public static Dictionary<string, List<Threshold>> m_AllThresholdListOld = new Dictionary<string, List<Threshold>>();
|
||||
|
||||
// Lista soglie completa passata dal chiamante del componente
|
||||
public static List<Threshold> m_AllThresholdList = new List<Threshold>();
|
||||
|
||||
#endregion Public Fields
|
||||
|
||||
#region Public Constructors
|
||||
@@ -361,7 +363,7 @@ namespace WebWindowComplex.Models
|
||||
public void RefreshThresholdList()
|
||||
{
|
||||
m_ThresholdList.Clear();
|
||||
m_ThresholdList = m_AllThresholdList.GetValueOrDefault(ParentWindow.sProfilePath);
|
||||
m_ThresholdList = m_AllThresholdList;
|
||||
}
|
||||
|
||||
public double HeightFrame()
|
||||
@@ -413,7 +415,7 @@ namespace WebWindowComplex.Models
|
||||
newFrame.RefreshThresholdList();
|
||||
if (m_AllThresholdList != null && m_AllThresholdList.Any())
|
||||
{
|
||||
newFrame.SetSelThresholdFromName(m_AllThresholdList.GetValueOrDefault(Window.sProfilePath)?.FirstOrDefault()?.Name ?? "");
|
||||
newFrame.SetSelThresholdFromName(m_AllThresholdList.FirstOrDefault().Name ?? "");
|
||||
}
|
||||
//newFrame.FrameArcElem = null;
|
||||
return newFrame;
|
||||
|
||||
@@ -17,13 +17,12 @@ namespace WebWindowComplex.Models
|
||||
{
|
||||
public class Window
|
||||
{
|
||||
#region Public Events
|
||||
#region Public Fields
|
||||
|
||||
//public event EventHandler<OnPreviewEventArgs> OnPreview = delegate { };
|
||||
//public event EventHandler<OnReqShapeEventArgs> OnReqShape = delegate { };
|
||||
//public event EventHandler<OnReqHwOptEventArgs> OnReqHwOption = delegate { };
|
||||
// Lista dei parametri del profilo passata dal chiamante del componente
|
||||
public static Dictionary<string, double> m_ParameterList = new Dictionary<string, double>();
|
||||
|
||||
#endregion Public Events
|
||||
#endregion Public Fields
|
||||
|
||||
#region Public Properties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user