Esempio n. 1
0
        private Collection4 IntroduceClassConstrain(IReflectClass claxx)
        {
            Collection4 newConstraints      = new Collection4();
            IEnumerator existingConstraints = IterateConstraints();

            while (existingConstraints.MoveNext())
            {
                QCon         existingConstraint = (QConObject)existingConstraints.Current;
                BooleanByRef removeExisting     = new BooleanByRef(false);
                QCon         newConstraint      = existingConstraint.ShareParentForClass(claxx, removeExisting
                                                                                         );
                if (newConstraint != null)
                {
                    newConstraints.Add(newConstraint);
                    AddConstraint(newConstraint);
                    if (removeExisting.value)
                    {
                        RemoveConstraint(existingConstraint);
                    }
                }
            }
            return(newConstraints);
        }