Esempio n. 1
0
        /// <summary>
        /// Removes a connection from this graph
        /// </summary>
        /// <param name="output">The output of the connection.</param>
        /// <param name="input">The input of the connection.</param>
        public void RemoveConnection(IConnectable output, IConnectable input)
        {
            if (output == null)
            {
                throw new ArgumentNullException("output");
            }
            if (input == null)
            {
                throw new ArgumentNullException("input");
            }
            Repository.RemoveAll <ConnectionData>(p => p != null && p.OutputIdentifier == output.Identifier && p.InputIdentifier == input.Identifier);

            output.OnOutputConnectionRemoved(input);
            input.OnInputConnectionRemoved(output);
            //        ConnectedItems.RemoveAll(p => p.OutputIdentifier == output.Identifier && p.InputIdentifier == input.Identifier);
        }
Esempio n. 2
0
        /// <summary>
        /// Removes a connection from this graph
        /// </summary>
        /// <param name="output">The output of the connection.</param>
        /// <param name="input">The input of the connection.</param>
        public void RemoveConnection(IConnectable output, IConnectable input)
        {
            if (output == null) throw new ArgumentNullException("output");
            if (input == null) throw new ArgumentNullException("input");
            Repository.RemoveAll<ConnectionData>(p => p != null && p.OutputIdentifier == output.Identifier && p.InputIdentifier == input.Identifier);

            output.OnOutputConnectionRemoved(input);
            input.OnInputConnectionRemoved(output);
            //        ConnectedItems.RemoveAll(p => p.OutputIdentifier == output.Identifier && p.InputIdentifier == input.Identifier);
        }