/// <summary>
        /// Adds a connector
        /// </summary>
        /// <param name="connector">Connector to be added</param>
        public virtual void AddConnector(Connector connector)
        {
            if (connector == null)
            {
                throw new ArgumentNullException("Cannot add null connector");
            }

            Connectors.Add(connector);
            OnConnectorAdded.SafeInvoke(this, new ConnectorAddedEventArgs(connector));
        }
Exemple #2
0
 private void ConnectorAdded(Connector n)
 {
     OnConnectorAdded?.Invoke(n);
 }