public void BeginEntity(object entity) { var font = default(Font); if (_eshape != null) { _eshape.End(); font = _eshape.CurrentFont; _eshape = null; } EntityShapes eshape = null; if (!_shapes.TryGetValue(entity, out eshape)) { eshape = new EntityShapes(entity, _canvas); _shapes[entity] = eshape; } _eshape = eshape; if (font != null) { _eshape.SetFont(font); } _drawnShapes.Add(entity, _eshape); _eshape.Begin(); }
public void BeginEntity(object entity) { var font = default(Font); if (_eshape != null) { _eshape.End (); font = _eshape.CurrentFont; _eshape = null; } EntityShapes eshape = null; if (!_shapes.TryGetValue (entity, out eshape)) { eshape = new EntityShapes (entity, _canvas); _shapes[entity] = eshape; } _eshape = eshape; if (font != null) _eshape.SetFont(font); _drawnShapes.Add (entity, _eshape); _eshape.Begin (); }
public void SetFont(Font font) { _eshape.SetFont(font); }