예제 #1
0
        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);
        }
예제 #2
0
 protected void RegisterCell(MenuCell cell)
 {
     Cells.Add(cell);
 }