- Aggiunti bottoni aggiuni ed elimina nella tabella

- Joint sash per archi gestiti in automatico di tipo Angled
This commit is contained in:
Annamaria Sassi
2026-03-12 18:40:44 +01:00
parent 4055915efe
commit 8c59d127d9
10 changed files with 282 additions and 171 deletions
+15
View File
@@ -1,4 +1,5 @@
using Egw.Window.Data;
using System.ComponentModel.Design;
using WebWindowComplex.Json;
using static WebWindowComplex.Json.WindowConst;
@@ -323,6 +324,20 @@ namespace WebWindowComplex.Models
JointList.Add(new Joint(this, 2, oldJointType[1].SelJointType));
JointList.Add(new Joint(this, 3, Joints.ANGLED));
JointList.Add(new Joint(this, 4, Joints.ANGLED));
Sash? SashArea = null;
if(AreaList.First() is Sash)
SashArea = (Sash)AreaList.First();
else if (AreaList.First().AreaList.Last().AreaList.First() is Sash)
SashArea = (Sash)AreaList.First().AreaList.Last().AreaList.First();
if (SashArea != null && SashArea.SashList.FirstOrDefault() != null)
{
int joint = SashArea.SashList.FirstOrDefault()!.JointList.Count - 1;
SashArea.SashList.FirstOrDefault()!.JointList.ElementAt(joint).SelJointTypeIndex = (int)Joints.ANGLED;
}
if (SashArea != null && SashArea.SashList.LastOrDefault() != null)
{
SashArea.SashList.LastOrDefault()!.JointList.ElementAt(2).SelJointTypeIndex = (int)Joints.ANGLED;
}
break;
}