/////////////////////////////////////////////////////////////////////////////// // Defining Properties // /////////////////////////////////////////////////////////////////////////////// #region PROPERTIES #endregion //PROPERTIES /////////////////////////////////////////////////////////////////////////////// // Public methods // /////////////////////////////////////////////////////////////////////////////// #region PUBLICMETHODS /// <summary> /// Starts new target shape creation by starting /// one of the pictures creation methods depending on /// current shape. /// </summary> /// <param name="type">A <see cref="VGShapeType"/> with the type of shape to create /// for target.</param> public void NewTargetShape(VGShapeType type) { int count = this.GetNextTargetNumber(); switch (type) { case VGShapeType.Rectangle: this.NewRectangleStart( ShapeDrawAction.NameAndEdge, this.TargetPen, new SolidBrush(this.TargetPen.Color), this.TargetFont, this.TargetFontColor, VGStyleGroup.AOI_TARGET, "Target" + count.ToString()); break; case VGShapeType.Ellipse: this.NewEllipseStart( ShapeDrawAction.NameAndEdge, this.TargetPen, new SolidBrush(this.TargetPen.Color), this.TargetFont, this.TargetFontColor, VGStyleGroup.AOI_TARGET, "Target" + count.ToString()); break; case VGShapeType.Polyline: this.NewPolylineStart( ShapeDrawAction.NameAndEdge, this.TargetPen, new SolidBrush(this.TargetPen.Color), this.TargetFont, this.TargetFontColor, VGStyleGroup.AOI_TARGET, "Target" + count.ToString()); break; } }