- Aggiunti bottoni aggiuni ed elimina nella tabella
- Joint sash per archi gestiti in automatico di tipo Angled
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user