public override void OnRemove() { RemoveChild(ReferenceFrameTool); RemoveChild(ConnectedFrameTool); ReferenceFrameTool = ConnectedFrameTool = null; OnChangeDirtyTarget = null; }
public override void OnAdd() { HideDefaultHandlesEnableWhenRemoved(); ReferenceFrameTool = new FrameTool(AttachmentPair.ReferenceFrame) { OnChangeDirtyTarget = OnChangeDirtyTarget, UndoRedoRecordObject = AttachmentPair }; ConnectedFrameTool = new FrameTool(AttachmentPair.ConnectedFrame) { OnChangeDirtyTarget = OnChangeDirtyTarget, UndoRedoRecordObject = AttachmentPair, TransformHandleActive = !AttachmentPair.Synchronized }; AddChild(ReferenceFrameTool); AddChild(ConnectedFrameTool); }