Exemplo n.º 1
0
        private TableView<Object> CreateTable(Mock<ITableModel<Object>> modelMock, TableRendererMock<Object> renderer, Mock<ITableSelectionModel> selectionModelMock, ITableGrid grid = null)
        {
            if (grid == null)
                grid = new TableGrid();

            var table = new TableView<Object>(modelMock.Object, renderer, selectionModelMock.Object, grid);
            table.SetCoordinates(0, 0, 500, 500);
            return table;
        }