aggiunti bottoni per copiare singola anta
This commit is contained in:
@@ -90,29 +90,50 @@
|
||||
}
|
||||
else if (currStep == CompileStep.Gerarchia)
|
||||
{
|
||||
<table class="table table-sm table-hover align-middle">
|
||||
<tbody>
|
||||
@for (int i = 0; i < ItemTableList.Count; i++)
|
||||
{
|
||||
<tr>
|
||||
@for (int j = 0; j < m_maxCol; j++)
|
||||
{
|
||||
@if (j + 1 == ItemTableList[i].Col)
|
||||
<div class="display-6">
|
||||
<table class="table table-sm table-hover align-middle">
|
||||
<tbody>
|
||||
@for (int i = 0; i < ItemTableList.Count; i++)
|
||||
{
|
||||
<tr>
|
||||
@for (int j = 0; j < m_maxCol; j++)
|
||||
{
|
||||
<td>
|
||||
<button class="btn btn-sm btn-secondary" style="font-size: 1rem;" @onclick="() => NextStepAndPreview(CompileStep.Frame)" title="Vai a step @(CompileStep.Frame)">@ItemTableList[i].Desc</button>
|
||||
</td>
|
||||
CompileStep cs = CompileStep.Frame;
|
||||
int indSash = -1;
|
||||
@if (j + 1 == ItemTableList[i].Col)
|
||||
{
|
||||
@if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FRAME)
|
||||
{
|
||||
cs = CompileStep.Frame;
|
||||
}
|
||||
else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.SPLIT)
|
||||
{
|
||||
cs = CompileStep.Split;
|
||||
}
|
||||
else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.SASH)
|
||||
{
|
||||
cs = CompileStep.Sash;
|
||||
indSash = ItemTableList[i].NumSash;
|
||||
}
|
||||
else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FILL)
|
||||
{
|
||||
cs = CompileStep.Fill;
|
||||
}
|
||||
<td>
|
||||
<button class="btn btn-sm btn-secondary" style="font-size: 1rem;" @onclick="() => NextStepAndPreview(cs, indSash)" title="Vai a step @(cs)">@ItemTableList[i].Desc</button>
|
||||
</td>
|
||||
}
|
||||
else
|
||||
{
|
||||
<td>@fillTable(i, j)</td>
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
<td> </td>
|
||||
}
|
||||
}
|
||||
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
}
|
||||
else if (currStep == CompileStep.Frame)
|
||||
{
|
||||
@@ -462,6 +483,10 @@
|
||||
}
|
||||
else if (currStep == CompileStep.Sash)
|
||||
{
|
||||
@if (currSash > SashList.Count)
|
||||
{
|
||||
currStep = CompileStep.Gerarchia;
|
||||
}
|
||||
Sash item = SashList[currSash];
|
||||
<div class="container">
|
||||
<div class="text-start display-4">
|
||||
@@ -547,6 +572,18 @@
|
||||
<label class="form-check-label fs-6 text-dark" for="HandleSashLabel@(i * 2 + j + 1)">Handle</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
@for (int k = 1; k <= i*2+j; k++)
|
||||
{
|
||||
int IndexCopy = k;
|
||||
int IndexModify = i * 2 + j;
|
||||
<div class="col-sm-3">
|
||||
<div class="input-group mb-2">
|
||||
<button class="btn btn-outline-secondary btn-sm" @onclick="() => CopyContent(item, IndexCopy, IndexModify)">Copy @(k)</button>
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user