示例#1
0
        /// <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)));
        }
示例#2
0
 /// <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));
 }