- Aggiunto componente Hw Option e sua gestione

- Utilizzate liste nei select (forma frame, tipo apertura sash,  forma split)
This commit is contained in:
Annamaria Sassi
2025-11-03 15:27:41 +01:00
parent 0caf3ef83b
commit 86f3d59a98
17 changed files with 238 additions and 220 deletions
+7 -14
View File
@@ -229,14 +229,7 @@ namespace WebWindowComplex.Models
}
}
}
// arriva come terzo evento refresh!!!
#if false
// calcolo senza hw
m_ParentWindow.OnUpdatePreview(JsonConvert.SerializeObject(m_ParentWindow.Serialize(true)));
#endif
m_ParentWindow.OnUpdatePreview(m_ParentWindow.sSerialized(true));
// continuo refresh
//ReqRefreshShape();
//m_ParentWindow.OnUpdatePreview(m_ParentWindow.sSerialized(true));
RefreshHardwareList();
RefreshHardwareOptionList();
SetFirstHardware();
@@ -355,9 +348,9 @@ namespace WebWindowComplex.Models
}
set
{
m_SelHardware = m_HardwareList.FirstOrDefault(x => !string.IsNullOrEmpty(value) && x.Id.Equals(value)) ?? new Hardware("", "", "", Enums.OpeningTypes.Null, "", 0, 0);
ReqRefreshHwOption();
ParentWindow.OnUpdatePreview(ParentWindow.sSerialized());
m_SelHardware = m_HardwareList.FirstOrDefault(x => !string.IsNullOrEmpty(value) && x.Id.Equals(value)) ?? new Hardware(CustomHwId, "", "", Enums.OpeningTypes.Null, "", 0, 0);
//ReqRefreshHwOption();
//ParentWindow.OnUpdatePreview(ParentWindow.sSerialized());
}
}
@@ -415,10 +408,10 @@ namespace WebWindowComplex.Models
newSash.SetIsSashVertical(bIsSashVertical);
newSash.SetOrientationSashType(OrientationSashType);
newSash.SetSashBottomRailQty(SashBottomRailQty);
newSash.SetSelFamilyHardwareFromIndex(SelHardware.Id);
newSash.SetSelFamilyHardwareFromIndex(m_SelHardware.Id);
newSash.ReqRefreshShape();
newSash.RefreshHardwareOptionList();
newSash.SetSelHardware(SelHardware);
newSash.SetSelHardware(m_SelHardware);
for (int i = 0; i < SashList.Count; i++)
{
//Cancello SashDimension di default e aggiungo la copia
@@ -694,7 +687,7 @@ namespace WebWindowComplex.Models
if (m_HardwareList.Count > 0)
{
m_SelHardware = m_HardwareList.First();
ReqRefreshHwOption();
//ReqRefreshHwOption();
}
}