Ejemplo n.º 1
0
 private static void lUpdateAttachmentPoints(DesignObject dobj, DesignElement delem)
 {
     if (delem.AttachmentPoint != null)
     {
         if (delem.AttachmentPoint.Attachment == null)
         {
             delem.AttachmentPoint.Attachment = dobj.GetDesignElementByName(delem.AttachmentPoint.AttachmentName);
             lUpdateAttachmentPoints(dobj, delem.AttachmentPoint.Attachment);
             delem.UpdatePoints();
         }
     }
 }
Ejemplo n.º 2
0
        public void UpdatePointsForElement(DesignElement delem)
        {
            delem.UpdatePoints();

            foreach (DesignElement tmpdelem in Elements)
            {
                if ((tmpdelem.AttachmentPoint != null) && (tmpdelem.AttachmentPoint.Attachment == delem))
                {
                    UpdatePointsForElement(tmpdelem);
                }
            }
        }