/// <summary>
        /// Constructor
        /// </summary>
        /// <param name="node">
        /// The required requirement node.
        /// </param>
        public RequirementNodeRequirement(IRequirementNode node)
        {
            _node = node;

            _node.PropertyChanged += OnNodeChanged;

            UpdateValue();
        }
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="requirements">
        /// The requirement dictionary.
        /// </param>
        /// <param name="fromNode">
        /// The node from which the connection originates.
        /// </param>
        public EntryNodeConnection(
            IRequirementDictionary requirements, IRequirementNode fromNode)
        {
            _fromNode = fromNode;

            Requirement = requirements[RequirementType.NoRequirement];

            _fromNode.PropertyChanged += OnNodeChanged;
        }
Exemplo n.º 3
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="fromNode">
        /// The node from which the connection originates.
        /// </param>
        public EntryNodeConnection(IRequirementNode fromNode)
        {
            _fromNode = fromNode ?? throw new ArgumentNullException(nameof(fromNode));

            _fromNode.PropertyChanged += OnNodeChanged;
        }