Example #1
0
 /// <summary>
 /// 从指定Layer中删除
 /// </summary>
 /// <param name="layer"></param>
 public virtual void RemoveOperationShapeFromLayer(ILayer <IPrimitive> layer)
 {
     Anchors.ForEach(a => a.RemoveFromLayer(layer));
     ResizeHandles.ForEach(a => a.RemoveFromLayer(layer));
     if (__bound != null)
     {
         layer.Remove(__bound);
     }
 }
Example #2
0
 public virtual void AddOperationShapeToLayer(ILayer <IPrimitive> layer)
 {
     if (__bound != null)
     {
         layer.Add(__bound);
     }
     Anchors.ForEach(a => a.AddToLayer(layer));
     ResizeHandles.ForEach(a => a.AddToLayer(layer));
 }