Exemplo n.º 1
0
 /// <summary>
 /// Sets the <see cref="AnnotationGraphic"/> that owns this strategy.
 /// </summary>
 public void SetAnnotationGraphic(AnnotationGraphic annotationGraphic)
 {
     if (_annotationGraphic != annotationGraphic)
     {
         var oldAnnotationGraphic = _annotationGraphic;
         _annotationGraphic = annotationGraphic;
         OnAnnotationGraphicChanged(oldAnnotationGraphic, annotationGraphic);
     }
 }
 /// <summary>
 /// Cloning constructor.
 /// </summary>
 protected AnnotationGraphic(AnnotationGraphic source, ICloningContext context)
     : base(source, context)
 {
     context.CloneFields(source, this);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Called when the <see cref="AnnotationGraphic"/> changes.
 /// </summary>
 /// <param name="oldAnnotationGraphic">The former value of <see cref="AnnotationGraphic"/>.</param>
 /// <param name="annotationGraphic">The new value of <see cref="AnnotationGraphic"/>.</param>
 protected virtual void OnAnnotationGraphicChanged(AnnotationGraphic oldAnnotationGraphic, AnnotationGraphic annotationGraphic)
 {
 }