Exemplo n.º 1
0
    public void toggleRouteView()
    {
        isshowingPath = !isshowingPath;

        var path = pathOn.getCurveRepresentation();

        foreach (var c in path)
        {
            if (isshowingPath)
            {
                drawing.highLightRoad(c);
                stopEvent += delegate {
                    drawing.deHighLightRoad(c);
                };
            }
            else
            {
                drawing.deHighLightRoad(c);
                stopEvent = stopEvent - delegate
                {
                    drawing.deHighLightRoad(c);
                };
            }
        }
    }