- Iniziato ad aggiungere inglesine come split
- Corretto warnings
This commit is contained in:
@@ -96,7 +96,7 @@ else
|
||||
<button class="btn btn-outline-secondary btn-sm" @onclick="() => AddSplitToSash()">Add split</button>
|
||||
</div>
|
||||
<div class="input-group mb-2 justify-content-center">
|
||||
<button class="btn btn-outline-secondary btn-sm">Add inglesina</button>
|
||||
<button class="btn btn-outline-secondary btn-sm" @onclick="() => AddInglesinaToSash()">Add inglesina</button>
|
||||
</div>
|
||||
}
|
||||
<button type="button" class="btn-close" aria-label="Close" @onclick="() => ClosePopup(IndexSash)"></button>
|
||||
|
||||
@@ -328,6 +328,21 @@ namespace WebWindowComplex.Compo
|
||||
return EC_UpdateSash.InvokeAsync(args);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Metodo per aggiungere l'inglesina nella singola anta
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
private Task AddInglesinaToSash()
|
||||
{
|
||||
CurrAnta.AddInglesina();
|
||||
DataUpdateProfile args = new DataUpdateProfile()
|
||||
{
|
||||
sash = CurrSashGroup,
|
||||
reqProfile = true
|
||||
};
|
||||
return EC_UpdateSash.InvokeAsync(args);
|
||||
}
|
||||
|
||||
private bool isOpen = false;
|
||||
|
||||
private void ToggleDropdown()
|
||||
|
||||
@@ -12,16 +12,16 @@
|
||||
<div class="modal-body">
|
||||
@if(CurrFrame() != null)
|
||||
{
|
||||
@for (int i = CurrFrame().BottomRailElemDimList.Count - 1; i >= 0; i-- )
|
||||
@for (int i = CurrFrame()!.BottomRailElemDimList.Count - 1; i >= 0; i-- )
|
||||
{
|
||||
<EditElement CurrRec="CurrFrame().BottomRailElemDimList.ElementAt(i)" IsBottomRail=true EC_Update="UpdateElement"></EditElement>
|
||||
<EditElement CurrRec="CurrFrame()!.BottomRailElemDimList.ElementAt(i)" IsBottomRail=true EC_Update="UpdateElement"></EditElement>
|
||||
}
|
||||
}
|
||||
@if (CurrSash() != null)
|
||||
{
|
||||
@for (int i = CurrSash().BottomRailElemDimList.Count - 1; i >= 0; i--)
|
||||
@for (int i = CurrSash()!.BottomRailElemDimList.Count - 1; i >= 0; i--)
|
||||
{
|
||||
<EditElement CurrRec="CurrSash().BottomRailElemDimList.ElementAt(i)" IsBottomRail=true EC_Update="UpdateElement"></EditElement>
|
||||
<EditElement CurrRec="CurrSash()!.BottomRailElemDimList.ElementAt(i)" IsBottomRail=true EC_Update="UpdateElement"></EditElement>
|
||||
}
|
||||
}
|
||||
</div>
|
||||
|
||||
@@ -27,17 +27,16 @@ namespace WebWindowComplex.Compo
|
||||
if (updRec != null)
|
||||
{
|
||||
DataBottomRail ans = new();
|
||||
ElementDimension currRec = new(CurrArea, -1, 0);
|
||||
ElementDimension? currRec = new(CurrArea, -1, 0);
|
||||
if (CurrFrame() != null)
|
||||
{
|
||||
// cerco il record
|
||||
currRec = CurrFrame().BottomRailElemDimList.FirstOrDefault(x => x.ParentArea == updRec.ParentArea && x.nIndex == updRec.nIndex);
|
||||
|
||||
currRec = CurrFrame()!.BottomRailElemDimList.FirstOrDefault(x => x.ParentArea == updRec.ParentArea && x.nIndex == updRec.nIndex);
|
||||
}
|
||||
else if(CurrSash() != null)
|
||||
{
|
||||
// cerco il record
|
||||
currRec = CurrSash().BottomRailElemDimList.FirstOrDefault(x => x.ParentArea == updRec.ParentArea && x.nIndex == updRec.nIndex);
|
||||
currRec = CurrSash()!.BottomRailElemDimList.FirstOrDefault(x => x.ParentArea == updRec.ParentArea && x.nIndex == updRec.nIndex);
|
||||
}
|
||||
if (currRec != null)
|
||||
{
|
||||
|
||||
@@ -198,7 +198,7 @@ namespace WebWindowComplex.Compo
|
||||
{
|
||||
if (updRec != null)
|
||||
{
|
||||
SplitElementDimension? currRec = new SplitElementDimension(null, 0,0,-1);
|
||||
SplitElementDimension? currRec = new SplitElementDimension(updRec.ParentArea, 0,0,-1);
|
||||
if (updRec.nSubArea != 0)
|
||||
{
|
||||
List<SplitElementDimension> ElemIndexList = new List<SplitElementDimension>();
|
||||
|
||||
@@ -59,10 +59,6 @@
|
||||
<i class="@hwIcon(ItemTableList[i].Row)" style="width:0.5rem;"></i>
|
||||
</button>
|
||||
</div>
|
||||
@* <button class="btn btn-xs btn-light btn-rounded" style="width:2rem;"
|
||||
@onclick="() => changeCollapsed(ItemTableList[row].Row)">
|
||||
<i class="@hwIcon(ItemTableList[i].Row)" style="width:0.5rem;"></i>
|
||||
</button> *@
|
||||
}
|
||||
@* <div class="card text-center m-1 p-1 shadow-sm hover-shadow">
|
||||
<button class="btn btn-sm btn-danger btn-rounded"
|
||||
|
||||
@@ -4,11 +4,11 @@
|
||||
<span class="input-group-text">@(CurrOpt.sName)</span>
|
||||
@if (CurrValue is String)
|
||||
{
|
||||
<input type="text" readonly class="form-control" value="@CurrOpt.ValueList.FirstOrDefault(x => x.sValue.Equals(CurrValue)).sDescription">
|
||||
<input type="text" readonly class="form-control" value="@CurrOpt.ValueList.FirstOrDefault(x => x.sValue.Equals(CurrValue))!.sDescription">
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="number" readonly class="form-control" value="@CurrOpt.ValueList.FirstOrDefault(x => x.sValue == CurrValue).sDescription">
|
||||
<input type="number" readonly class="form-control" value="@CurrOpt.ValueList.FirstOrDefault(x => x.sValue == CurrValue)!.sDescription">
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user