Correzioni componente

This commit is contained in:
Annamaria Sassi
2025-10-08 17:53:39 +02:00
parent 86dc31877a
commit a68ff2f23b
9 changed files with 162 additions and 183 deletions
+6 -36
View File
@@ -264,30 +264,9 @@ namespace WebWindowComplex
get => m_SashList;
}
protected string SelColorMaterial { get; set; } = "";
protected string SelFamilyHardware { get; set; } = "";
protected string SelFamilyHardware
{
get
{
return m_SelFamilyHardware;
}
set
{
m_SelFamilyHardware = value;
Sash.s_SelFamilyHW = value;
for (int i = 0; i < SashList.Count; i++)
{
SashList[i].RefreshHardwareList();
SashList[i].RefreshHardwareOptionList();
SashList[i].SetFirstHardware();
}
if (m_CurrWindow != null)
{
m_CurrWindow.OnUpdatePreview(m_CurrWindow.sSerialized());
}
}
}
protected string SelColorMaterial { get; set; } = "";
protected string SelGlass { get; set; } = "";
@@ -738,8 +717,9 @@ namespace WebWindowComplex
updateSvg = true;
}
if (SashList.Count > 0)
{
currAnta = 0;
}
if (updateSvg)
{
await DoPreviewSvg();
@@ -798,19 +778,10 @@ namespace WebWindowComplex
Sash.s_FamilyHardwareList = ListPayload.FamilyHardware;
if (CurrSelection != null && CurrSelection.IsValid())
{
SelFamilyHardware = CurrSelection.FamilyHardware;
SelFamilyHardware = CurrSelection.FamilyHardware ?? "";
SelColorMaterial = CurrSelection.ColorMaterial ?? "";
SelMaterial = CurrSelection.Material ?? "";
SelGlass = CurrSelection.Glass ?? "";
Sash.s_SelFamilyHW = CurrSelection.FamilyHardware ?? "";
}
else
{
// se ho elementi, seleziono la prima
if (ListPayload.FamilyHardware.Count > 0)
{
Sash.s_SelFamilyHW = Sash.s_FamilyHardwareList.FirstOrDefault();
}
}
}
@@ -1099,7 +1070,7 @@ namespace WebWindowComplex
/// Metodo per cambiare step e aggiornare preview svg
/// </summary>
/// <param name="newStep"> step successivo </param>
private async void NextStepAndPreview(CompileStep newStep, int Index = -1)
private void NextStepAndPreview(CompileStep newStep, int Index = -1)
{
editLock = true;
currStep = newStep;
@@ -1131,7 +1102,6 @@ namespace WebWindowComplex
#if false
await DoPreviewSvg();
#endif
await Task.Delay(1);
}
/// <summary>