public string GetSelectedValue()
        {
            BlockOfCellsCollection cells = _grid.SelectedCells;

            if (cells.Count == 0)
            {
                return(null);
            }

            BlockOfCells cellsSet = cells[0];
            IGridStorage storage  = _grid.GridStorage;

            return(storage.GetCellDataAsString(cellsSet.Y, cellsSet.X));
        }
Beispiel #2
0
 public Grid(IGridSize gridSize)
 {
     if (gridSize == null) throw new ArgumentNullException("gridSize");
     GridSize = gridSize;
     _gridStorage = new GridStorage(gridSize);
 }