Smrf.NodeXL.Visualization.Wpf.NodeXLControl.AddEdgeDuringGroupCollapseOrExpand C# (CSharp) Method

AddEdgeDuringGroupCollapseOrExpand() protected method

protected AddEdgeDuringGroupCollapseOrExpand ( IEdge oEdge, System.Boolean bDrawEdge ) : void
oEdge IEdge
bDrawEdge System.Boolean
return void
    AddEdgeDuringGroupCollapseOrExpand
    (
        IEdge oEdge,
        Boolean bDrawEdge
    )
    {
        Debug.Assert(oEdge != null);
        AssertValid();

        m_oGraph.Edges.Add(oEdge);

        if ( VertexOrEdgeIsSelected(oEdge) )
        {
            m_oSelectedEdges.Add(oEdge);
        }

        if (bDrawEdge && m_oLastGraphDrawingContext != null)
        {
            m_oGraphDrawer.DrawNewEdge(oEdge, m_oLastGraphDrawingContext);
        }
    }
NodeXLControl