if (0 <= point.X && point.X < mGridWidth && 0 <= point.Y && point.Y < mGridHeight &&\r
mGrid[point.X, point.Y])\r
{\r
int cost = cell.G + costFunction(cell.Point, point);\r
\r
if (0 <= point.X && point.X < mGridWidth && 0 <= point.Y && point.Y < mGridHeight &&\r
mGrid[point.X, point.Y])\r
{\r
int cost = cell.G + costFunction(cell.Point, point);\r
\r