minor fix condizioni su profile/profileList + fix togliendo old data

This commit is contained in:
Samuele Locatelli
2026-01-22 16:12:26 +01:00
parent e1ba401353
commit c0fd981d45
10 changed files with 68 additions and 34 deletions
+7 -3
View File
@@ -68,8 +68,10 @@ namespace WebWindowComplex.DTO
bool matOK = Material != null && Material.Count > 0;
bool colorOK = ColorMaterial != null && ColorMaterial.Count > 0;
bool profileOK = ProfileList != null && ProfileList.Count > 0;
#if false
bool profileOKOld = Profile != null && Profile.Count > 0;
bool thresholdOK = Threshold != null && Threshold.Count > 0;
bool thresholdOK = Threshold != null && Threshold.Count > 0;
#endif
return famHwOK && glassOK && hwOK && colorOK && matOK && profileOK;
}
/// <summary>
@@ -83,9 +85,11 @@ namespace WebWindowComplex.DTO
bool glassOK = Glass != null && Glass.Count > 0;
bool matOK = Material != null && Material.Count > 0;
bool colorOK = ColorMaterial != null && ColorMaterial.Count > 0;
bool profileOK = ProfileList != null && ProfileList.Count > 0;
bool profileOK = ProfileList != null && ProfileList.Count > 0;
#if false
bool profileOKOld = Profile != null && Profile.Count > 0;
bool thresholdOK = Threshold != null && Threshold.Count > 0;
bool thresholdOK = Threshold != null && Threshold.Count > 0;
#endif
return famHwOK || glassOK || hwOK || colorOK || matOK || profileOK;
}
}