void SetCellType(GridCell cell, GridCellType type) { if (cell == null) { return; } cell.Type = type; }