Smrf.NodeXL.ExcelTemplate.WorksheetContextMenuManager.RunAnEdgeCommand C# (CSharp) Méthode

RunAnEdgeCommand() protected méthode

protected RunAnEdgeCommand ( System.Windows.Forms.CommandBarButton oCommandBarButton, EdgeCommand eEdgeCommand ) : void
oCommandBarButton System.Windows.Forms.CommandBarButton
eEdgeCommand EdgeCommand
Résultat void
    RunAnEdgeCommand
    (
        CommandBarButton oCommandBarButton,
        EdgeCommand eEdgeCommand
    )
    {
        Debug.Assert(oCommandBarButton != null);
        AssertValid();

        // Retrieve the ID of the edge that was right-clicked.  This can be
        // NoRowID.

        Int32 iClickedEdgeID = CommandBarButtonToClickedID(oCommandBarButton);

        CommandDispatcher.SendCommand( this,
            new RunEdgeCommandEventArgs(iClickedEdgeID, eEdgeCommand) );
    }