Пример #1
0
        /// <summary>
        /// Changes all of the parent references to point to the passed in parent reference.
        /// </summary>
        /// <param name="parent">New parent complex reference.</param>
        public void Reparent(WixComplexReferenceRow parent)
        {
            this.ParentId       = parent.ParentId;
            this.ParentLanguage = parent.ParentLanguage;
            this.ParentType     = parent.ParentType;

            if (!this.IsPrimary)
            {
                this.IsPrimary = parent.IsPrimary;
            }
        }
Пример #2
0
        /// <summary>
        /// Creates a shallow copy of the ComplexReference.
        /// </summary>
        /// <returns>A shallow copy of the ComplexReference.</returns>
        public WixComplexReferenceRow Clone()
        {
            WixComplexReferenceRow wixComplexReferenceRow = new WixComplexReferenceRow(this.SourceLineNumbers, this.Table);

            wixComplexReferenceRow.ParentType     = this.ParentType;
            wixComplexReferenceRow.ParentId       = this.ParentId;
            wixComplexReferenceRow.ParentLanguage = this.ParentLanguage;
            wixComplexReferenceRow.ChildType      = this.ChildType;
            wixComplexReferenceRow.ChildId        = this.ChildId;
            wixComplexReferenceRow.IsPrimary      = this.IsPrimary;

            return(wixComplexReferenceRow);
        }