コード例 #1
0
        /// <summary>
        /// NOTE: This constructor clones the part, makes sure the token is the same, and clears guide lines
        /// </summary>
        public UndoRedoAddRemove(bool isAdd, DesignPart part, int layerIndex)
            : base(part.Part3D.Token, layerIndex)
        {
            this.IsAdd = isAdd;

            this.Part = part.Clone();
            this.Part.Part3D.Token = this.Token;
            this.Part.GuideLines = null;
        }
コード例 #2
0
        /// <summary>
        /// NOTE: This constructor clones the part, makes sure the token is the same, and clears guide lines
        /// </summary>
        public UndoRedoAddRemove(bool isAdd, DesignPart part, int layerIndex)
            : base(part.Part3D.Token, layerIndex)
        {
            this.IsAdd = isAdd;

            this.Part = part.Clone();
            this.Part.Part3D.Token = this.Token;
            this.Part.GuideLines   = null;
        }