protected override void GenerateColumn(XElement row, ComplexNode tableRow) { int columnPosition = 0; for (int i = 0; i < row.Elements("col").Count(); i++) { var column = row.Elements("col").ElementAt(i); var cell = new GuideBodyLeftBlueTextCellFactory("td", column.Value, columnPosition); tableRow.ChildNodes.Add(cell); columnPosition++; } }
protected override void GenerateColumn(UserViewModel row, ComplexNode tableRow) { var cell = new GuideBodyLeftBlueTextCellFactory("td", row.FirstName, 0); tableRow.ChildNodes.Add(cell); cell = new GuideBodyLeftBlueTextCellFactory("td", row.LastName, 1); tableRow.ChildNodes.Add(cell); cell = new GuideBodyLeftBlueTextCellFactory("td", row.Position, 2); tableRow.ChildNodes.Add(cell); cell = new GuideBodyLeftBlueTextCellFactory("td", row.Email, 3); tableRow.ChildNodes.Add(cell); cell = new GuideBodyLeftBlueTextCellFactory("td", row.Org, 4); tableRow.ChildNodes.Add(cell); cell = new GuideBodyLeftBlueTextCellFactory("td", row.GeoCode, 5); tableRow.ChildNodes.Add(cell); }