Esempio n. 1
0
        public void RunCommands(IEnumerable <VectorCommand> commands)
        {
            var sink     = new GeometrySink(Resource.Open());
            var designer = new FigureParser(sink);

            designer.Execute(commands);
            if (designer.IsFigureOpen)
            {
                sink.EndFigure(FigureEnd.Open);
            }
            sink.Close();
        }
Esempio n. 2
0
 public FigureParser(GeometrySink sink)
 {
     this.sink = sink;
 }