GitHubDashboard/FDG/Diagram.cs
/// <summary>
/// Removes the specified node from the diagram. Any connected nodes will remain on the diagram.
/// </summary>
/// <param name="node">The node to remove from the diagram.</param>
/// <returns>True if the node belonged to the diagram.</returns>
Removes the specified node from the diagram. Any connected nodes will remain on the diagram.
Removes the specified node from the diagram . Any connected nodes will remain on the diagram .
public bool RemoveNode(Node node)
		{
			bool ret;
			foreach (Node other in nodes)
			{
				if ((other != node) && other.Connections.Contains(node))
				{
					other.Disconnect(node);
				}
			}
			ret = nodes.Remove(node);
			layout.Remove(layout.Single(n => n.Node == node));
			return ret;
		}
public bool RemoveNode ( Node node ) { bool ret ; foreach ( Node other in nodes ) { if ( ( other != node ) && other . Connections . Contains ( node ) ) { other . Disconnect ( node ) ; } } ret = nodes . Remove ( node ) ; layout . Remove ( layout . Single ( n => n . Node == node ) ) ; return ret ; }
Removes the specified node from the diagram.
Removes the specified node from the diagram .
// Disconnect this node from other nodes.
True if the node belonged to the diagram.
True if the node belonged to the diagram .
node
Node
The node to remove from the diagram.
The node to remove from the diagram .