private void ApplyValues(GridState grid, CellState cell, int k) { var border = cell.Borders[k]; border.SpacingType = _witdhType; if (grid.GetNeighbour(cell, k) == null) { border.Spacing = _width * 2; } else { border.Spacing = _width; } }