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)); }
private bool CompareBlockCollections(BlockOfCellsCollection collection1, BlockOfCellsCollection collection2) { if (collection1.Count != collection2.Count) { return(false); } for (var i = 0; i < collection1.Count; i++) { var block1 = collection1[i]; var block2 = collection2[i]; if (block1.X != block2.X || block1.Y != block2.Y) { return(false); } } return(true); }