- @if (SashList.Count == 0 && SplitList.Count == 0)
+ @if (SashGroupList.Count == 0 && SplitList.Count == 0)
{
diff --git a/WebWindowComplex/Compo/AreaFrame.razor.cs b/WebWindowComplex/Compo/AreaFrame.razor.cs
index 48180ac..5e39ecf 100644
--- a/WebWindowComplex/Compo/AreaFrame.razor.cs
+++ b/WebWindowComplex/Compo/AreaFrame.razor.cs
@@ -16,8 +16,8 @@ namespace WebWindowComplex.Compo
///
/// Lista sash
///
- [CascadingParameter(Name = "SashList")]
- public List SashList { get; set; } = null!;
+ [CascadingParameter(Name = "SashGroupList")]
+ public List SashGroupList { get; set; } = null!;
///
/// Lista split
diff --git a/WebWindowComplex/Compo/AreaSash.razor.cs b/WebWindowComplex/Compo/AreaSash.razor.cs
index baeef8f..62bef39 100644
--- a/WebWindowComplex/Compo/AreaSash.razor.cs
+++ b/WebWindowComplex/Compo/AreaSash.razor.cs
@@ -30,8 +30,8 @@ namespace WebWindowComplex.Compo
///
/// Lista delle sash
///
- [CascadingParameter(Name = "SashList")]
- public List SashList { get; set; } = null!;
+ [CascadingParameter(Name = "SashGroupList")]
+ public List SashGroupList { get; set; } = null!;
///
/// Livello di accesso (utente base)
@@ -196,8 +196,36 @@ namespace WebWindowComplex.Compo
///
private Task ChangeAllJoints(Json.WindowConst.Joints JointType)
{
- foreach (var item in CurrSashDim.JointList)
- item.SelJointType = JointType;
+ for (int i = 0; i < CurrSashDim.JointList.Count; i++)
+ {
+ Frame? frame = CurrSashGroup.ParentWindow.AreaList.FirstOrDefault();
+ if (frame != null && (frame.Shape is Json.WindowConst.Shapes.ARC ||
+ frame.Shape is Json.WindowConst.Shapes.ARC_FULL ||
+ frame.Shape is Json.WindowConst.Shapes.DOUBLEARC ||
+ frame.Shape is Json.WindowConst.Shapes.THREECENTERARC) &&
+ (CurrSashGroup.ParentArea.ParentArea is Split &&
+ CurrSashGroup.ParentArea.ParentArea.AreaList.LastOrDefault().AreaList.FirstOrDefault().Equals(CurrSashGroup)))
+ {
+ if(CurrSashGroup.SashList.Count == 1)
+ {
+ if(i == 2 || i == CurrSashDim.JointList.Count - 1)
+ CurrSashDim.JointList.ElementAt(i).SelJointType = Joints.ANGLED;
+ else
+ CurrSashDim.JointList.ElementAt(i).SelJointType = JointType;
+ }
+ else
+ {
+ if (IndexSash == 0 && i == CurrSashDim.JointList.Count - 1)
+ CurrSashDim.JointList.ElementAt(i).SelJointType = Joints.ANGLED;
+ else if(IndexSash == CurrSashGroup.SashList.Count - 1 && i == 2)
+ CurrSashDim.JointList.ElementAt(i).SelJointType = Joints.ANGLED;
+ else
+ CurrSashDim.JointList.ElementAt(i).SelJointType = JointType;
+ }
+ }
+ else
+ CurrSashDim.JointList.ElementAt(i).SelJointType = JointType;
+ }
return EC_UpdateSashDim.InvokeAsync(CurrSashDim);
}
@@ -242,7 +270,7 @@ namespace WebWindowComplex.Compo
private Task ChangeHandle()
{
// Cerco la Sash che si sta considerando nella lista Sash
- var s = SashList.Where(x => x.GroupId == CurrSashGroup.GroupId).FirstOrDefault();
+ var s = SashGroupList.Where(x => x.GroupId == CurrSashGroup.GroupId).FirstOrDefault();
if (s != null)
{
// Setto la presenza o meno della maniglia per ogni anta
diff --git a/WebWindowComplex/Compo/AreaSplit.razor b/WebWindowComplex/Compo/AreaSplit.razor
index 2ec3b05..7d42284 100644
--- a/WebWindowComplex/Compo/AreaSplit.razor
+++ b/WebWindowComplex/Compo/AreaSplit.razor
@@ -10,11 +10,11 @@
- @for (int j = 0; j < SashList.Count; j++)
+ @for (int j = 0; j < SashGroupList.Count; j++)
{
int Index = j;
-
+
}
diff --git a/WebWindowComplex/Compo/AreaSplit.razor.cs b/WebWindowComplex/Compo/AreaSplit.razor.cs
index a272dfa..e8178e8 100644
--- a/WebWindowComplex/Compo/AreaSplit.razor.cs
+++ b/WebWindowComplex/Compo/AreaSplit.razor.cs
@@ -12,7 +12,7 @@ namespace WebWindowComplex.Compo
/// Lista delle sash
///