Inserimento shape negli oggetti sash

This commit is contained in:
Annamaria Sassi
2025-10-23 14:55:56 +02:00
parent 1ed1658195
commit d477fb9319
7 changed files with 48 additions and 13 deletions
+2 -1
View File
@@ -105,7 +105,8 @@ namespace WebWindowComplex.Models
Area ParentArea = AreaList[0].ParentArea;
// Creo area sash di default
Sash SashArea = Sash.CreateSash(ParentArea);
// ricerco tra ttuti gli hw disponibili...
// ricerco tra tutti gli hw disponibili...
string sShape = FindSashShape();
var listHwValid = Sash
.m_HardwareCompleteList
+7 -4
View File
@@ -441,9 +441,10 @@ namespace WebWindowComplex.Models
}
}
public string sSashShape
public string SashShape
{
get => m_CurrShape;
set => m_CurrShape = value;
}
#endregion Public Properties
@@ -545,7 +546,7 @@ namespace WebWindowComplex.Models
}
/// <summary>
/// Agfgiornamento HW List conseguente a ricezione nuiova Shape
/// Aggiornamento HW List conseguente a ricezione nuova Shape
/// </summary>
/// <param name="newShape"></param>
public void UpdateShape(string newShape)
@@ -764,13 +765,15 @@ namespace WebWindowComplex.Models
internal string SetSelFamilyHardwareFromIndex(string codHardware)
{
string? item = "";
if (string.IsNullOrEmpty(m_SelFamilyHardware))
{
var item = m_HardwareCompleteList
item = m_HardwareCompleteList
.Where(x => x.Id == codHardware)
.Select(x => x.FamilyName)
.FirstOrDefault();
SelFamilyHardware = item ?? "";
SetSelFamilyHardware(item ?? "");
//SelFamilyHardware = item ?? "";
}
return SelFamilyHardware;
}