Aggiunto enum Tipi Apertura

This commit is contained in:
Annamaria Sassi
2025-10-09 15:11:30 +02:00
parent c9a6bf98d7
commit 7e81fa272a
2 changed files with 21 additions and 4 deletions
+15
View File
@@ -41,5 +41,20 @@ namespace Egw.Window.Data
MAICO = 2,
ROTO = 3
}
/// <summary>
/// Elenco tipi aperture
/// </summary>
public enum OpeningTypes : int
{
NULL = 0,
TURNONLY = 1,
TILTTURN = 2,
TILTONLY = 3,
PIVOT = 4,
FIXED = 5,
COMPLANARSLIDE = 6,
LIFTSLIDE = 7
}
}
}
+6 -4
View File
@@ -1,4 +1,6 @@
namespace Egw.Window.Data
using static Egw.Window.Data.Enums;
namespace Egw.Window.Data
{
public class Hardware
{
@@ -29,8 +31,8 @@
}
}
private string m_OpeningType;
public string OpeningType
private OpeningTypes m_OpeningType;
public OpeningTypes OpeningType
{
get
{
@@ -65,7 +67,7 @@
}
}
public Hardware(string Id, string FamilyName, string Description, string OpeningType, string Shape, int SashQty, int SashPosition)
public Hardware(string Id, string FamilyName, string Description, OpeningTypes OpeningType, string Shape, int SashQty, int SashPosition)
{
m_Id = Id;
m_FamilyName = FamilyName;