Ejemplo n.º 1
0
    private void AddState(Geometry geometry)
    {
        Type type = Type.GetType(tool.Name + "GeometryState");

        if (type != null)
        {
            GeometryState geometryState = (GeometryState)Activator.CreateInstance(type, tool, geometry);
            geometryState.OnClickDelete = () => geoController.ClearGeometryOperation(geometry);

            stateController.AddGeometryState(geometryState);
        }
    }