private static void SmoothHorizontally(DataGridViewSelectedCellCollection selectedCells) { var rowsGroup = selectedCells.ToList().GroupBy(p => p.RowIndex); SmoothCells(rowsGroup); }
private static void SmoothVertically(DataGridViewSelectedCellCollection selectedCells) { var columnsGroup = selectedCells.ToList().GroupBy(p => p.ColumnIndex); SmoothCells(columnsGroup); }