private void OnShapeCreated(ShapeCreatedEventArgs e) { if (ShapeCreated != null) { ShapeCreated(this, e); } }
private void DrawingControl_ShapeCreated(object sender, ShapeCreatedEventArgs e) { var shape = e.Shape; if (!_drawingControl.IsDirectlyUsing) { shape.FillColor = _fillColor; shape.OutlineWidth = _outlineWidth; shape.OutlineColor = _outlineColor; shape.OutlineDash = _outlineDash; } if (ShapeCreated != null) { ShapeCreated(this, new ShapeCreatedEventArgs(shape)); } //_page.AddDrawingObject(shape); }
private void drawPad_ShapeCreated(object sender, ShapeCreatedEventArgs e) { _appManament.CreateObject(e.Shape); }