Corretti alcuni Warnings

This commit is contained in:
Annamaria Sassi
2026-01-28 11:26:54 +01:00
parent 3f96d71c30
commit ce8bd4fafc
27 changed files with 479 additions and 435 deletions
+14 -10
View File
@@ -21,7 +21,7 @@ namespace WebWindowComplex.Models
#region Public Constructors
public Frame(Area ParentArea, Window ParentWindow) : base(ParentArea, ParentWindow)
public Frame(Area? ParentArea, Window ParentWindow) : base(ParentArea, ParentWindow)
{
}
@@ -443,7 +443,7 @@ namespace WebWindowComplex.Models
public override Frame Copy(Area ParentArea)
{
return null;
return new Frame(null, ParentWindow);
}
#endregion Public Methods
@@ -465,7 +465,7 @@ namespace WebWindowComplex.Models
newFrame.RefreshThresholdList();
if (m_AllThresholdList != null && m_AllThresholdList.Any())
{
newFrame.SetSelThresholdFromName(m_AllThresholdList.FirstOrDefault().Name ?? "");
newFrame.SetSelThresholdFromName(m_AllThresholdList.FirstOrDefault()?.Name ?? "");
}
//newFrame.FrameArcElem = null;
return newFrame;
@@ -679,12 +679,16 @@ namespace WebWindowComplex.Models
/// <returns></returns>
internal double AvailArea()
{
// larghezza - elementDim(1) - elementDim(last) + overlapDd + overlapSx
return DimensionList.FirstOrDefault(x => x.sName.Equals("Width")).dDimension -
ElementDimensionList.ElementAt(1).dDimension -
ElementDimensionList.Last().dDimension +
ElementDimensionList.ElementAt(1).dOverlap +
ElementDimensionList.Last().dOverlap;
if(DimensionList.Count> 0 && DimensionList.FirstOrDefault(x => x.sName.Equals("Width")) != null)
{
// larghezza - elementDim(1) - elementDim(last) + overlapDd + overlapSx
return DimensionList.FirstOrDefault(x => x.sName.Equals("Width"))!.dDimension -
ElementDimensionList.ElementAt(1).dDimension -
ElementDimensionList.Last().dDimension +
ElementDimensionList.ElementAt(1).dOverlap +
ElementDimensionList.Last().dOverlap;
}
return -1;
//switch (m_Shape)
//{
// case Shapes.RECTANGLE:
@@ -742,7 +746,7 @@ namespace WebWindowComplex.Models
private bool m_bBottomRail;
private Threshold m_SelThreshold;
private Threshold m_SelThreshold = new Threshold(1, "");
private List<Threshold> m_ThresholdList = new List<Threshold>();