@using static WebWindowComplex.LayoutConst @*
*@ @for (int i = 0; i < maxCol; i++) { } @for (int i = 0; i < ItemTableList.Count; i++) { @for (int j = 0; j < maxCol; j++) { var index = RowCollapsedDict.Keys.Order().Where(k => k <= i).LastOrDefault(); @if ((RowCollapsedDict.ContainsValue(true) && RowCollapsedDict.GetValueOrDefault(index)) && i - 1 > 0 && ItemTableList.ElementAt(i).Col > ItemTableList.ElementAt(index-1).Col){ continue; } else { CompileStep cs = CompileStep.Frame; int row = i; int ind = -1; string s = "Vai a step "; @if (j + 1 == ItemTableList[i].Col) { @if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FRAME) { cs = CompileStep.Frame; s = s + cs.ToString(); } else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.SPLIT) { cs = CompileStep.Split; ind = ItemTableList[i].IndexItem; s = s + cs.ToString() + ((ind + 1) > 0 ? (ind + 1): ""); } else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.SASH) { cs = CompileStep.Sash; ind = ItemTableList[i].IndexItem; s = s + cs.ToString() + ((ind + 1) > 0 ? (ind + 1) : ""); } else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FILL) { cs = CompileStep.Fill; ind = ItemTableList[i].IndexItem; s = s + cs.ToString() + ((ind + 1) > 0 ? (ind + 1) : ""); } else if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.INGLESINA) { cs = CompileStep.Inglesina; ind = ItemTableList[i].IndexItem; s = s + cs.ToString() + ((ind + 1) > 0 ? (ind + 1) : ""); } } else { @* *@ } } } }
@*
*@
@if (ItemTableList[row].NumChild > 3) { } @if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.SASH || ItemTableList[i].Type is Json.WindowConst.AreaTypes.SPLIT || ItemTableList[i].Type is Json.WindowConst.AreaTypes.INGLESINA) { } @if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FRAME && ((SashGroupList.Count == 0 && SplitList.Count == 0) || !(FrameWindow.AreaList.First() is Split))) { } @if (ItemTableList[i].Type is Json.WindowConst.AreaTypes.FILL) { int currIndexFill = ItemTableList[i].IndexItem; if (FillList.ElementAt(currIndexFill).ParentArea is Frame) { } else if (SplittedList != null && SplittedList.Count > 0) { Splitted? currSplitted = SplittedList.Where(x => x.AreaList.First().Equals(FillList[currIndexFill])).FirstOrDefault(); @if (currSplitted != null) { @if (currSplitted.ParentArea != null && currSplitted.ParentWindow != null && currSplitted.AreaList.FirstOrDefault() != null && currSplitted.AreaList.First()!.AreaList.Count == 0) { } } } }
@*
*@ @*
*@
@FillTable(i, j)
@*
*@