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); }
public void AddActionLink(ActionLink link) { link.SourceButton = this; ActionLinks.Add(link); }