Esempio n. 1
0
 public override bool IsDependentOn(IObjectDefinition theOtherObject)
 {// TODO: these will never be null since we set them in the constructor and never change them (only their contents)
     return((theOtherObject == this) ||
            (centerX != null && centerX.IsDependentOn(theOtherObject)) ||
            (centerY != null && centerY.IsDependentOn(theOtherObject)) ||
            (radius != null && radius.IsDependentOn(theOtherObject)) ||
            base.IsDependentOn(theOtherObject));
 }
Esempio n. 2
0
 public override bool IsDependentOn(IObjectDefinition theOtherObject)
 {// TODO: these will never be null since we set them in the constructor and never change them (only their contents)
     return((theOtherObject == this) ||
            (mCenter_Y != null && mCenter_Y.IsDependentOn(theOtherObject)) ||
            (mHeight != null && mHeight.IsDependentOn(theOtherObject)) ||
            (mCenter_X != null && mCenter_X.IsDependentOn(theOtherObject)) ||
            (mWidth != null && mWidth.IsDependentOn(theOtherObject)) ||
            base.IsDependentOn(theOtherObject));
 }
 public override bool IsDependentOn(IObjectDefinition theOtherObject)
 {// TODO: these will never be null since we set them in the constructor and never change them (only their contents)
     return((theOtherObject == this) ||
            (top != null && top.IsDependentOn(theOtherObject)) ||
            (bottom != null && bottom.IsDependentOn(theOtherObject)) ||
            (left != null && left.IsDependentOn(theOtherObject)) ||
            (right != null && right.IsDependentOn(theOtherObject)) ||
            (topPadding != null && topPadding.IsDependentOn(theOtherObject)) ||
            (bottomPadding != null && bottomPadding.IsDependentOn(theOtherObject)) ||
            (leftPadding != null && leftPadding.IsDependentOn(theOtherObject)) ||
            (rightPadding != null && rightPadding.IsDependentOn(theOtherObject)) ||
            base.IsDependentOn(theOtherObject));
 }
Esempio n. 4
0
 public override bool IsDependentOn(IObjectDefinition theOtherObject)
 {
     if (theOtherObject == this)
     {
         return(true);
     }
     if (mArgument == theOtherObject)
     {
         return(true);                             // this should be unnecessary if all objects return true if theOtherObject == this
     }
     if (mArgument.IsDependentOn(theOtherObject))
     {
         return(true);
     }
     return(base.IsDependentOn(theOtherObject));
 }
Esempio n. 5
0
 public override bool IsDependentOn(IObjectDefinition theOtherObject)
 {
     return((mPrerequisite != null && mPrerequisite.IsDependentOn(theOtherObject)) ||
            base.IsDependentOn(theOtherObject));
 }