/// <summary> /// Removes a connector /// </summary> /// <param name="connector">The connector to be removed</param> /// <param name="notifyListeners">True to raise the ConnectorRemove event, /// false to remove this connector silently</param> public void RemoveConnector(Connector connector, bool notifyListeners = true) { Connectors.Remove(connector); if (notifyListeners) { OnConnectorRemoved.SafeInvoke(this, new ConnectorRemovedEventArgs(connector)); } }
private void ConnectorRemoved(Connector n) { OnConnectorRemoved?.Invoke(n); }