Пример #1
0
        private void _mainForm_AddedObstical(object sender, Point point)
        {
            if (!_map.IsPointOfRoad(point))
            {
                var tempObstacle = new Obstacle(point);
                _map.AddObstacle(tempObstacle);

                RepaintMap(true);
            }
        }
Пример #2
0
 public Map AddObstacle(Obstacle obstacle)
 {
     ListObstacles.Add(obstacle);
     return this;
 }