private static MenuCell[,] CellsToGrid(IEnumerable <MenuCell> cells, int rows, int columns) { var gridCells = new MenuCell[rows, columns]; foreach (var cell in cells) { gridCells[cell.Row, cell.Column] = cell; } return(gridCells); }
protected void RegisterCell(MenuCell cell) { Cells.Add(cell); }