diff --git a/WebWindowComplex/Compo/CardFill.razor b/WebWindowComplex/Compo/CardFill.razor new file mode 100644 index 0000000..b17024b --- /dev/null +++ b/WebWindowComplex/Compo/CardFill.razor @@ -0,0 +1,76 @@ + +
+
+
+
+

Fill @(CurrIndex + 1)

+
+
+
+ +
+
+
+
+ +
+
+
+
+
+
+
+
+
Selected all fill
+
+
+
+ +
+
+
+
+ +
+
+
+
+
+@foreach (var currSplitted in SplittedList) +{ + @if (currSplitted.AreaList[0].Equals(CurrItem)) + { + @*
+
+
+
+ @if (SplittedList.Count > 1) + { +

Area split @(SplittedList.IndexOf(currSplitted) + 1)

+ } + else + { +

Area split

+ } +
+
+
+ +
+
+ @foreach (var Index in SashList) + { +
+
+ +
+
+ } +
+
+
*@ + + @* *@ + } +} + diff --git a/WebWindowComplex/Compo/CardFill.razor.cs b/WebWindowComplex/Compo/CardFill.razor.cs new file mode 100644 index 0000000..6a36478 --- /dev/null +++ b/WebWindowComplex/Compo/CardFill.razor.cs @@ -0,0 +1,68 @@ +using Microsoft.AspNetCore.Components; +using WebWindowComplex.Models; +using static WebWindowComplex.Json.WindowConst; + +namespace WebWindowComplex.Compo +{ + public partial class CardFill + { + #region Public Properties + + [Parameter] + public int CurrIndex { get; set; } = 0; + + [Parameter] + public Fill CurrItem { get; set; } = null!; + + [Parameter] + public EventCallback EC_ChangeAllType { get; set; } + + [Parameter] + public EventCallback EC_ChangeType { get; set; } + + [Parameter] + public List FillList { get; set; } = null!; + + [Parameter] + public List SashList { get; set; } = null!; + + [Parameter] + public List SplittedList { get; set; } = null!; + + #endregion Public Properties + + #region Protected Methods + + protected async Task ChangeAllFill(FillTypes reqFillType) + { + await EC_ChangeAllType.InvokeAsync(reqFillType); + } + + protected async Task ChangeOneFill(FillTypes reqFillType) + { + await EC_ChangeType.InvokeAsync(reqFillType); + } + + #endregion Protected Methods + + #region Private Methods + + /// + /// Calcola bottone selezionato per il Fill + /// + /// + private string buttonFillCss(FillTypes reqFillTypes) + { + return (FillList.ElementAt(CurrIndex).SelFillType == reqFillTypes) ? "btn btn-secondary btn-sm" : "btn btn-outline-secondary btn-sm"; + +#if false + if (FillList.ElementAt(CurrIndex).SelFillType == reqFillTypes) + return "btn btn-secondary btn-sm"; + else + return "btn btn-outline-secondary btn-sm"; +#endif + } + + #endregion Private Methods + } +} \ No newline at end of file diff --git a/WebWindowComplex/TableComp.razor b/WebWindowComplex/TableComp.razor index f47ea48..f92f930 100644 --- a/WebWindowComplex/TableComp.razor +++ b/WebWindowComplex/TableComp.razor @@ -696,7 +696,8 @@ else { Fill item = FillList[currFill]; -
+ + @*
@@ -740,44 +741,14 @@ { @if (currSplitted.AreaList[0].Equals(item)) { - @*
-
-
-
- @if (SplittedList.Count > 1) - { -

Area split @(SplittedList.IndexOf(currSplitted) + 1)

- } - else - { -

Area split

- } -
-
-
- -
-
- @foreach (var Index in SashList) - { -
-
- -
-
- } -
-
-
*@ - @* *@ } }
-
+ *@ } } else if (currStep == CompileStep.General) diff --git a/WebWindowComplex/WebWindowComplex.csproj b/WebWindowComplex/WebWindowComplex.csproj index c590384..01136b3 100644 --- a/WebWindowComplex/WebWindowComplex.csproj +++ b/WebWindowComplex/WebWindowComplex.csproj @@ -53,6 +53,9 @@ + + + diff --git a/WebWindowConfigurator/WebWindowConfigurator.csproj b/WebWindowConfigurator/WebWindowConfigurator.csproj index 6506193..0b24817 100644 --- a/WebWindowConfigurator/WebWindowConfigurator.csproj +++ b/WebWindowConfigurator/WebWindowConfigurator.csproj @@ -80,6 +80,13 @@ + + + + + + +