Example #1
0
        public override void OnRemove()
        {
            RemoveChild(ReferenceFrameTool);
            RemoveChild(ConnectedFrameTool);

            ReferenceFrameTool  = ConnectedFrameTool = null;
            OnChangeDirtyTarget = null;
        }
Example #2
0
        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);
        }