public bool Equals(FrameworkItemReference reference)
 {
     bool referencingNode = ReferencingItem == reference.ReferencingItem;
     bool propertyName = PropertyName == reference.PropertyName;
     bool referencedNode = ReferencedItem == reference.ReferencedItem;
     return referencingNode && propertyName && referencedNode;
 }
        public bool Equals(FrameworkItemReference reference)
        {
            bool referencingNode = ReferencingItem == reference.ReferencingItem;
            bool propertyName    = PropertyName == reference.PropertyName;
            bool referencedNode  = ReferencedItem == reference.ReferencedItem;

            return(referencingNode && propertyName && referencedNode);
        }
Exemple #3
0
        public bool Unreference(IFrameworkItem frameworkItem, string propertyName)
        {
            if (frameworkItem != null && propertyName != null)
            {
                var reference = new FrameworkItemReference(frameworkItem, propertyName, this);
                return References.Remove(reference);
            }

            return false;
        }
Exemple #4
0
        public bool Reference(IFrameworkItem frameworkItem, string propertyName)
        {
            var reference = new FrameworkItemReference(frameworkItem, propertyName, this);
            if (!References.Contains(reference))
            {
                References.Add(reference);
                return true;
            }

            return true;
        }