Correzioni

This commit is contained in:
Annamaria Sassi
2025-10-22 16:48:04 +02:00
parent b7a3497019
commit fad95d22b6
13 changed files with 164 additions and 31 deletions
+1 -2
View File
@@ -114,11 +114,10 @@ namespace WebWindowComplex.Models
if (listHwValid != null)
{
// seleziono la famiglia del primo hw trovato...
SashArea.SelFamilyHardware = listHwValid.FamilyName;
SashArea.SetSelFamilyHardware(listHwValid.FamilyName);
SashArea.ReqRefreshShape();
if (SashArea.HardwareList.Count == 0)
{
SashArea.Remove();
answ = true;
}
else
+5 -1
View File
@@ -94,10 +94,14 @@ namespace WebWindowComplex.Models
return JsonFill;
}
internal void SetSelFillType(FillTypes value)
{
m_SelFillType = value;
//m_ParentWindow.OnUpdatePreview(m_ParentWindow.sSerialized());
}
internal void SetFillType(FillTypes value)
{
m_SelFillType = value;
m_ParentWindow.OnUpdatePreview(m_ParentWindow.sSerialized());
}
#endregion Internal Methods
+13 -5
View File
@@ -44,6 +44,10 @@ namespace WebWindowComplex.Models
#region Public Properties
public string sSashShape
{
get => m_CurrShape;
}
public bool bIsMeasureGlass
{
get
@@ -316,10 +320,7 @@ namespace WebWindowComplex.Models
}
set
{
m_SelFamilyHardware = value;
ReqRefreshShape();
RefreshHardwareOptionList();
SetFirstHardware();
SetSelFamilyHardware(value);
m_ParentWindow.OnUpdatePreview(m_ParentWindow.sSerialized());
}
}
@@ -569,7 +570,7 @@ namespace WebWindowComplex.Models
newSash.JointList.Add(new Joint(newSash, JointIndex + 1, Joints.FULL_H));
newSash.SetSashBottomRail(false);
newSash.SetSashBottomRailQty(0);
newSash.SelFamilyHardware = Sash.s_FamilyHardwareList.First();
newSash.SetSelFamilyHardware(Sash.s_FamilyHardwareList.First());
newSash.ReqRefreshShape();
newSash.RefreshHardwareOptionList();
newSash.SetFirstHardware();
@@ -750,6 +751,13 @@ namespace WebWindowComplex.Models
m_SashType = SashType;
}
public void SetSelFamilyHardware(string sFamilyHw)
{
m_SelFamilyHardware = sFamilyHw;
ReqRefreshShape();
RefreshHardwareOptionList();
SetFirstHardware();
}
internal string SetSelFamilyHardwareFromIndex(string codHardware)
{
if (string.IsNullOrEmpty(m_SelFamilyHardware))
+1 -1
View File
@@ -445,7 +445,7 @@ namespace WebWindowComplex.Models
internal void SetSplitStartVert(bool SplitStartVert)
{
bSplitStartVert = SplitStartVert;
m_bSplitStartVert = SplitStartVert;
}
#endregion Internal Methods