Пример #1
0
        public override bool Equals(object obj)
        {
            ActionLink link = obj as ActionLink;

            if (link == null)
            {
                return(false);
            }

            if (link.SourceButton != SourceButton ||
                link.DestinationButton != DestinationButton)
            {
                return(false);
            }
            if (!link.SourceTags.SequenceEqualSafe(SourceTags) ||
                !link.DestinationTags.SequenceEqualSafe(DestinationTags))
            {
                return(false);
            }
            return(true);
        }
Пример #2
0
 public void AddActionLink(ActionLink link)
 {
     link.SourceButton = this;
     ActionLinks.Add(link);
 }