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) ); }