示例#1
0
 public virtual bool AttachObject(GridObject objectToAttach)
 {
     if (Attachment == null && objectToAttach.IsAttachable)
     {
         _attachment = objectToAttach;
         _attachment.AttachToParent(this);
         _attachment.Placed();
         return(true);
     }
     return(false);
 }