Smrf.NodeXL.ExcelTemplate.IntergroupEdgeCalculator2.AddRow C# (CSharp) Method

AddRow() protected method

protected AddRow ( String sGroup1Name, String sGroup2Name, Int32 iEdges, GroupEdgeRows oGroupEdgeRows ) : void
sGroup1Name String
sGroup2Name String
iEdges System.Int32
oGroupEdgeRows GroupEdgeRows
return void
    AddRow
    (
        String sGroup1Name,
        String sGroup2Name,
        Int32 iEdges,
        GroupEdgeRows oGroupEdgeRows
    )
    {
        Debug.Assert( !String.IsNullOrEmpty(sGroup1Name) );
        Debug.Assert( !String.IsNullOrEmpty(sGroup2Name) );
        Debug.Assert(iEdges >= 0);
        Debug.Assert(oGroupEdgeRows != null);
        AssertValid();

        oGroupEdgeRows.Group1Names.Add( new GraphMetricValueOrdered(
            sGroup1Name) );

        oGroupEdgeRows.Group2Names.Add( new GraphMetricValueOrdered(
            sGroup2Name) );

        oGroupEdgeRows.Edges.Add( new GraphMetricValueOrdered(iEdges) );
    }