Exemple #1
0
 private void OnShapeCreated(ShapeCreatedEventArgs e)
 {
     if (ShapeCreated != null)
     {
         ShapeCreated(this, e);
     }
 }
Exemple #2
0
        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);
        }
Exemple #3
0
 private void drawPad_ShapeCreated(object sender, ShapeCreatedEventArgs e)
 {
     _appManament.CreateObject(e.Shape);
 }