Gestito parametro di ingresso lista Profili

This commit is contained in:
Annamaria Sassi
2026-01-22 14:46:39 +01:00
parent db317ccd77
commit e1ba401353
9 changed files with 158 additions and 29 deletions
+6 -4
View File
@@ -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;