SetAllEdgesSelected
(
Boolean bSelected
)
{
AssertValid();
if (bSelected)
{
foreach (IEdge oEdge in this.Graph.Edges)
{
SetEdgeSelectedInternal(oEdge, true);
}
}
else
{
// Do not directly iterate m_oSelectedEdges here. Keys may be
// removed by SetEdgeSelectedInternal() and you can't modify a
// collection while it's being iterated. Copy the collection to
// an array first.
foreach ( IEdge oSelectedEdge in m_oSelectedEdges.ToArray() )
{
SetEdgeSelectedInternal(oSelectedEdge, false);
}
}
}