public ResultRow(int cellsNumber, bool isHeader, string[] headers) { IsHeader = isHeader; Cells = new ResultCell[cellsNumber]; for (int i = 0; i < cellsNumber; i++) { Cells[i] = headers != null ? new ResultCell(headers[i]) : new ResultCell(); } }
private void Init(IDependencyContainer dependency) { dependency.Cache(new DownloadModel()); cell = RootMain.CreateChild <ResultCell>("Cell"); { cell.Size = new Vector2(300f, 180f); } }
private void AssertCellContainNames(int row, int column, IList <string> names) { Assert.IsTrue(row < page.RowCount); Assert.IsTrue(column < page.ColumnCount); ResultCell cell = page.GetResultCell(row, column); Assert.AreEqual(names.Count, cell.NameCount); for (int i = 0; i < names.Count; i++) { Assert.AreEqual(names[i], cell.GetName(i)); } }