Aggiornata modifica elementi

This commit is contained in:
Annamaria Sassi
2026-08-12 15:07:12 +02:00
parent cbf0f0257b
commit 6c532eebce
7 changed files with 71 additions and 91 deletions
+5 -5
View File
@@ -281,15 +281,15 @@
<div class="row g-3">
@foreach (var element in CurrSashDim.ElementDimensionList)
{
@if (CurrSashDim.ElementDimensionList.Count <= 4)
if ((CurrSashDim.ElementDimensionList.Count == 5 && element.nIndex == 4) ||
(CurrSashDim.ElementDimensionList.Count == 6 &&
(element.nIndex == 4 || element.nIndex == 5)))
{
<div class="col-6">
<EditElement CurrRec="element" EC_Update="UpdateElement"></EditElement>
</div>
continue;
}
else
{
<div class="col-4">
<div class="col-6">
<EditElement CurrRec="element" EC_Update="UpdateElement"></EditElement>
</div>
}
+7
View File
@@ -322,6 +322,13 @@ namespace WebWindowComplex.Compo
if (updRec != null)
{
currRec = updRec;
if (CurrSashDim.ElementDimensionList.Count > 4 && updRec.nIndex == 3)
{
for (int i = 3; i <= CurrSashDim.ElementDimensionList.Count - 2; i++)
{
CurrSashDim.ElementDimensionList.ElementAt(i).SetDimension(currRec.dDimension);
}
}
await EC_UpdateSashDim.InvokeAsync(CurrSashDim);
}
}
+6 -6
View File
@@ -150,17 +150,17 @@
<div class="row g-3">
@foreach (var element in CurrFrameWindow.ElementDimensionList)
{
@if (CurrFrameWindow.ElementDimensionList.Count <= 4)
if ((CurrFrameWindow.ElementDimensionList.Count == 5 && element.nIndex == 4) ||
(CurrFrameWindow.ElementDimensionList.Count == 6 &&
(element.nIndex == 4 || element.nIndex == 5)))
{
<div class="col-6">
<EditElement CurrRec="element" EC_Update="UpdateElement"></EditElement>
</div>
continue;
}
else
{
<div class="col-4">
<div class="col-6">
<EditElement CurrRec="element" EC_Update="UpdateElement"></EditElement>
</div>
</div>
}
}
</div>
@@ -351,6 +351,13 @@ namespace WebWindowComplex.Compo
if (updRec != null)
{
currRec = updRec;
if (CurrFrameWindow.ElementDimensionList.Count > 4 && updRec.nIndex == 3)
{
for (int i = 3; i <= CurrFrameWindow.ElementDimensionList.Count - 2; i++)
{
CurrFrameWindow.ElementDimensionList.ElementAt(i).SetDimension(currRec.dDimension);
}
}
var args = new DataUpdateFrame()
{
currFrame = CurrFrameWindow,
+14 -78
View File
@@ -48,91 +48,27 @@ namespace WebWindowComplex.Compo
nElement = frame.ElementDimensionList.Count;
else if(CurrRec.ParentArea is Sash sash)
nElement = sash.SashList.FirstOrDefault()!.ElementDimensionList.Count;
switch (nElement)
switch (CurrRec.nIndex)
{
case 1:
{
return "Bottom";
}
case 2:
{
return "Right";
}
case 3:
{
return "Top";
}
case 4:
{
switch (CurrRec.nIndex)
{
case 1:
{
return "Bottom";
}
case 2:
{
return "Right";
}
case 3:
{
return "Top";
}
case 4:
{
return "Left";
}
}
break;
}
case 5:
{
switch (CurrRec.nIndex)
{
case 1:
{
return "Bottom";
}
case 2:
{
return "Right";
}
case 3:
{
return "TR";
}
case 4:
{
return "TL";
}
case 5:
{
return "Left";
}
}
break;
}
case 6:
{
switch (CurrRec.nIndex)
{
case 1:
{
return "Bottom";
}
case 2:
{
return "Right";
}
case 3:
{
return "TR";
}
case 4:
{
return "TT";
}
case 5:
{
return "TL";
}
case 6:
{
return "Left";
}
return "Left";
}
break;
}
}
}
return "";
}
+5 -1
View File
@@ -6,7 +6,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>3.1.8.1212</Version>
<Version>3.1.8.1215</Version>
<Authors>Annamaria Sassi</Authors>
<Company>Egalware</Company>
<Description>Componente gestione Configurazioni avanzate Window per LUX</Description>
@@ -145,6 +145,10 @@
@@ -6,7 +6,7 @@
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<Version>3.1.8.1212</Version>
<Version>3.1.8.1215</Version>
<Authors>Annamaria Sassi</Authors>
<Company>Egalware</Company>
<Description>Componente gestione JWD per LUX</Description>
@@ -429,6 +429,32 @@