/// <summary> /// Returns <c>true</c> if the <paramref name="interactionProcess" /> is being used as part of the interactions /// otherwise <c>false</c> /// </summary> public virtual bool Uses(InteractionProcess interactionProcess) { if (!Any()) { return(false); } return(_interactionSelections.Any(x => x.Matches(interactionProcess))); }
/// <summary> /// Returns <c>true</c> if the <paramref name="interactionProcess"/> matches the compound and process used in this selection otherwise <c>false</c> /// </summary> public virtual bool Matches(InteractionProcess interactionProcess) { return(string.Equals(ProcessName, interactionProcess.Name) && string.Equals(CompoundName, interactionProcess.ParentCompound.Name)); }