private void NumberingRow(ISpecRow row, string index, int indexFirst, int indexSecond) { string num = row.Elements.First().GetNumber(index); foreach (var item in row.Elements) { item.SetNumber(num, indexFirst, indexSecond); } }
protected override ISpecRow GetNewRow(string group, List <ISpecElement> items) { ISpecRow res = null; var specItems = items.Where(i => i is ISlabElement); if (specItems.Any()) { res = new SlabRow(group, items); } return(res); }
protected override ISpecRow GetNewRow(string group, List <ISpecElement> items) { var specItems = items.Where(i => i is IGroupSpecElement); ISpecRow res = null; if (specItems.Any()) { res = new SpecGroupRow(group, specItems.ToList()); } return(res); }